deluged: Enable logging

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

deluged: Enable logging

Postby wilson » Sat Jun 11, 2016 8:37 pm

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: 3424
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: deluged: Enable logging

Postby Cas » Sat Jun 11, 2016 10:51 pm

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
OS or Distro: Mac OS 10.11.6
Location: US

Re: deluged: Enable logging

Postby wilson » Sun Jun 19, 2016 1:31 am

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: 3424
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: deluged: Enable logging

Postby Cas » Sun Jun 19, 2016 10:23 am

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


Return to “Mac OS”

Who is online

Users browsing this forum: No registered users and 1 guest