Convention location for JAR files for a LaunchDaemon on OS X?
- by Barry Wark
I'm setting up a Hudson build slave on an OS X machine. I'm using launchd to start the slave using the following plist in `/Library/LaunchDaemons/':
<?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>/Users/Shared/Hudson/slave.jar</string>
<string>-noCertificateCheck</string>
<string>-jnlpUrl</string>
<string>file:///Users/Shared/Hudson/slave-agent.jnlp</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
I'm currently putting the slave.jar and slave-agent.jnlp files in /Users/Shared/Hudson but this seems like an unnecessarily user-visible location. What's the convention? Where should I be putting these JARs for a daemon?