Version 1 (modified by Cas, 10 years ago) (diff)

--

Optionally create a new deluge user for running the service: http://support.apple.com/kb/PH6651

To create a LaunchDaemon for Deluge, create /Library/LaunchDaemons/com.deluged.plist using the script below. This script uses user 'deluge', created in the first step so replace if other user required.

Note: The path to deluge assumes installation using Macports and will need modified if using Deluge.app.

<?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.deluged</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/deluged-2.7</string>
<string>-d</string>
</array>
<key>UserName</key>
<string>deluge</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>

Set the service to load on startup:

sudo launchctl load -w /Library/LaunchDaemons/com.deluged.plist

To start it immediately without reboot:

sudo launchctl start com.deluged