Automatic startup on OS X using launchd
Posted: Fri May 01, 2009 5:45 am
There have been a couple threads about running subsonic automatically on linux, but no one has mentioned starting subsonic automatically on OS X at boot as a launchd job. I don't know if this is the best way, or even a good way (suggestions encouraged!), but it seems to work fine for me. It's not too fancy, but having not found it in this forum, I figured I'd post it.
create the following text file, name it "com.subsonic.start.plist", and place it in /Library/LaunchDaemons/
create the following text file, name it "com.subsonic.start.plist", and place it in /Library/LaunchDaemons/
- Code: Select all
<?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>Label</key>
<string>com.subsonic.start</string>
<key>ProgramArguments</key>
<array>
<string>sudo</string>
<string>/var/subsonic/standalone/subsonic.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>