Deluge as daemon in Mac

Start Deluge as daemon in Mac

 Deluge is my all time favorite torrent client. I usually run deluge as daemon with Web UI enable.  This is how I do it in mac.

  1. Download Deluge < http://deluge-torrent.org > for mac;
  2. Copy and past Deluge in /Application folder
  3. Create a file delugd.sh and past the code and save it.
#!/bin/sh
exec /Applications/Deluge.app/Contents/MacOS/deluged && /Applications/Deluge.app/Contents/MacOS/deluge-web

There are two way to run this script.
In terminal:

sh deluged.sh

OR you can run the script as startup;

In Terminal: 

nano ~/Library/LaunchAgents/local.deluged.plist
<?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>local.deluged</string>
    <key>ProgramArguments</key>
    <array>
        <string>sh</string>
        <string>/PATH/TO/deluged.sh</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>

Change /Path/To/deluged.sh to the location of the script. 

  • Again In terminal:
launchctl load ~/Library/LaunchAgents/local.deluged.plist

Taadddaa! its done 🙂

 

End of Deluge Daemon in Mac

 

Advertisements

4 thoughts on “Deluge as daemon in Mac

  1. Unfortunately, this script does not work for me on MacOS El Capitan. The script does not launch deluge-web, so I’m unable to run it in backgound.
    If I launch via ./deluged && ./deluge-web, it works.
    What am I doing wrong?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s