Convention location for JAR files for a LaunchDaemon on OS X?

Posted by Barry Wark on Server Fault See other posts from Server Fault or by Barry Wark
Published on 2010-07-24T20:43:47Z Indexed on 2010/12/31 11:55 UTC
Read the original article Hit count: 214

Filed under:
|
|

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?

© Server Fault or respective owner

Related posts about macosx

Related posts about hudson