[Python-Dev] OS X buildbots and launchd

Bill Janssen janssen at parc.com
Mon May 17 01:46:23 CEST 2010


I've repeated this setup with OS X 10.4 (Tiger).  Some changes to the
XML file were necessary, because I'd installed a non-system Python,
twisted, and zope.interface on this machine, and because on Tiger,
launchd daemon were not allowed to set their group ID.  Here's the Tiger
version, which again goes in
/Library/LaunchAgents/org.python.buildbot.slave.plist.

Bill

<?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>/Library/Frameworks/Python.framework/Versions/2.6/bin:/sbin:/usr/sbin:/bin:/usr/bin</string>
		<key>PYTHONPATH</key>
		<string>/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages</string>
	</dict>
	<key>KeepAlive</key>
	<dict>
		<key>SuccessfulExit</key>
		<false/>
	</dict>
	<key>Label</key>
	<string>org.python.buildbot.slave</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Library/Frameworks/Python.framework/Versions/2.6/bin/twistd</string>
		<string>-no</string>
		<string>-y</string>
		<string>/Users/buildbot/buildarea/buildbot.tac</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
	<key>UserName</key>
	<string>buildbot</string>
	<key>WorkingDirectory</key>
	<string>/Users/buildbot/buildarea</string>
</dict>
</plist>


More information about the Python-Dev mailing list