[Buildbot-devel] Buildbot and launchd
Valtteri Vuorikoski
vuori at karppinen.fi
Wed Dec 17 13:03:09 UTC 2008
The launchd plist given in the wiki doesn't seem to work properly on
Leopard (10.5.5). While it starts the processes, they apparently still
lose their security context and become unable to do DNS lookups. I
have used the following plist succesfully with 0.7.9:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
<plist version="1.0">
<dict>
<key>StandardOutPath</key>
<string>twistd.log</string>
<key>StandardErrorPath</key>
<string>twistd-err.log</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/local/bin:/sbin:/usr/sbin:/bin:/usr/bin</string>
<key>PYTHONPATH</key>
<string>/opt/local/lib/python2.5/site-packages</string>
</dict>
<key>GroupName</key>
<string>daemon</string>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>net.sourceforge.buildbot.master.test</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/twistd2.5</string>
<string>-no</string>
<string>-y</string>
<string>./buildbot.tac</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>buildbot</string>
<key>WorkingDirectory</key>
<string>/Users/buildbot/master/test</string>
</dict>
</plist>
This version also causes the process to run in foreground so it will
be properly restarted by launchd if it crashes. Could someone else
test this? If it works for others, I could add it to the wiki.
-v
More information about the devel
mailing list