deluged: Enable logging

Support for Deluge on Apple Mac OS
Post Reply
wilson
Member
Member
Posts: 23
Joined: Sat Dec 12, 2015 4:10 pm
Location: US

deluged: Enable logging

Post by wilson »

So I finally have deluged running as a daemon at startup and relaunches if quit or crash. Everything seems to be configured and working correctly. However, I cannot seem to get the daemon to startup with Logging enabled either to a shell or to a file. I have followed the instructions here: http://dev.deluge-torrent.org/wiki/User ... ce/launchd to which I attempted to amend the startup to include the options for logging like such:

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.deluged</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/deluged</string>
<string> -d-L INFO -l /Users/deluge/Library/Logs/deluge.log</string>
</array>
<key>UserName</key>
<string>deluge</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
The daemon starts no problem, however, logging is not enabled.

I have also followed these instructions: http://dev.deluge-torrent.org/wiki/Trou ... ugeLogging which works however I do not want to leave that shell from which I started it to remain open, which is why running as a daemon is great.

Any help would be appreciated.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluged: Enable logging

Post by Cas »

Clearly a launchd issue with arguments then: http://apple.stackexchange.com/a/111008
wilson
Member
Member
Posts: 23
Joined: Sat Dec 12, 2015 4:10 pm
Location: US

Re: deluged: Enable logging

Post by wilson »

Thanks for the link! I was able to get the daemon running with logging enabled. Here's my LaunchDaemon.

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.deluged</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/deluged</string>
<string>-d</string>
<string>-L</string>
<string>info</string>
<string>-l</string>
<string>/Users/deluged/Library/Logs/deluged.log</string>
</array>
<key>UserName</key>
<string>deluged</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
I really appreciate the support. Deluge is an amazingly simple, yet extremely powerful client that is lightweight, and now that I have all this knowledge...easy to manage! Thanks again for supporting this community!
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluged: Enable logging

Post by Cas »

Good to know that fixed it... I have updated wiki with that info. :)
Post Reply