$HOME/.launchd.conf Your launchd configuration file (currently unsupported).Pulling my ear: always try and test what you write about, sorry :-(. However using the following .plist file put into
$HOME/Library/LaunchAgents/org.hudson-ci.jnlpslave.plist really starts the slave:
<?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>KeepAlive</key>
<true/>
<key>Label</key>
<string>org.hudson-ci.jnlpslave</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/java</string>
<string>-jar</string>
<string>/home/hudson/bin/slave.jar</string>
<string>-jnlpUrl</string>
<string>http://SERVER/hudson/computer/NODE/slave-agent.jnlp</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Of course you have to adapt the path to your slave.jar as well as the URL to your Hudson-master.
No comments:
Post a Comment