[Buildbot-devel] Sample buildbot launchd plists for MacOS 10.4+
Mark Pauley
mpauley at apple.com
Wed Jan 24 19:05:44 UTC 2007
Hi guys,
I've had these kicking around for a while and thought that maybe
someone would like to see them. Installing either of these two to /
Library/LaunchDaemons will cause the bulidbot slave or master to auto-
start as whatever user you like on launch. This is the "right way to
do this" going forward, startupitems are deprecated. Please note that
this means any tests that require a windowserver connection on os x
won't work.
net.sourceforge.buildbot.slave.plist
****************************************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.sourceforge.buildbot.slave</string>
<!-- Change this to the user you want to run buildbot as -->
<key>UserName</key>
<string>buildbot</string>
<!-- Change this to your buildbot working directory -->
<key>WorkingDirectory</key>
<string>/Users/buildbot/Buildbot_Slave</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/twistd</string>
<string>--nodaemon</string>
<string>--python=buildbot.tac</string>
<string>--logfile=buildbot.log</string>
<string>--prefix=slave</string>
</array>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
net.sourceforge.buildbot.master.plist
*****************************************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.sourceforge.buildbot.slave</string>
<!-- Change this to the user you want to run buildbot as -->
<key>UserName</key>
<string>buildbot</string>
<!-- Change this to your buildbot working directory -->
<key>WorkingDirectory</key>
<string>/Users/buildbot/Buildbot_Master</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/twistd</string>
<string>--nodaemon</string>
<string>--python=buildbot.tac</string>
<string>--logfile=buildbot.log</string>
<string>--prefix=master</string>
</array>
<!-- Hack to keep buildbot running even if it crashes -->
<key>QueueDirectories</key>
<array> <string>/</string> </array>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/var/log/build_master.log</string>
</dict>
</plist>
More information about the devel
mailing list