[OS X Version] Add SABnzbd+ menu option to add launchd .plist
Posted: February 23rd, 2010, 10:12 pm
I would like SABnzbd+ to launch when my OS X system boots (independent of a user logging in, as a daemon).
The only way I am aware of to do this is by creating a launch .plist , which I haven't had great success with.
It would be quite nice if I could launch the SABnzbd.app and from the finder bar choose an option to run at boot, which would handle installing the .plist for me with correct settings.
FWIW, I haven't had a chance to test this yet, but I think I've finally got this sorted out:
This is stored in /Library/LaunchDaemons/com.sabnzbd.daemon.plist
The only way I am aware of to do this is by creating a launch .plist , which I haven't had great success with.
It would be quite nice if I could launch the SABnzbd.app and from the finder bar choose an option to run at boot, which would handle installing the .plist for me with correct settings.
FWIW, I haven't had a chance to test this yet, but I think I've finally got this sorted out:
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>GroupName</key>
<string>admin</string>
<key>Label</key>
<string>com.sabnzbd.daemon</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/SABnzbd.app/Contents/MacOS/SABnzbd</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/Library/Logs/sabnzbd/error.log</string>
<key>StandardOutPath</key>
<string>/Library/Logs/sabnzbd/sabnzbd.log</string>
<key>UserName</key>
<string>hanzo</string>
<key>WorkingDirectory</key>
<string>/Users/hanzo</string>
</dict>
</plist>