Changes between Version 1 and Version 2 of UserGuide/Service/launchd


Ignore:
Timestamp:
06/19/2016 10:22:20 AM (8 years ago)
Author:
Cas
Comment:

add logging and reword page

Legend:

Unmodified
Added
Removed
Modified
  • UserGuide/Service/launchd

    v1 v2  
    1 {{{#!comment 
    2 Credit for the steps goes to: https://gist.github.com/j10io/6877030 
    3 }}} 
     1= launchd Service Scripts = 
    42 
    5 Optionally create a new `deluge` user for running the service: http://support.apple.com/kb/PH6651 
     3== User Management == 
    64 
    7 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. 
     5The following launchd script uses a separate user `deluge`, this is optional but recommended for security. To create a new `deluge` user follow the [http://support.apple.com/kb/PH6651 Apple KB] steps. 
     6 
     7== Deluge Daemon (deluged) Service == 
    88 
    99''Note: The path to deluge assumes installation using Macports and will need modified if using `Deluge.app`.'' 
    1010 
     11Create the file `/Library/LaunchDaemons/com.deluged.plist` containing the following: 
    1112{{{ 
    1213<?xml version="1.0" encoding="UTF-8"?> 
     
    1819<key>ProgramArguments</key> 
    1920<array> 
    20 <string>/opt/local/bin/deluged-2.7</string> 
     21<string>/opt/local/bin/deluged</string> 
    2122<string>-d</string> 
    2223</array> 
     
    3233 
    3334 
    34 Set the service to load on startup: 
    35  
     35Set the service to load on startup and then start it: 
    3636{{{ 
    3737sudo launchctl load -w /Library/LaunchDaemons/com.deluged.plist 
    38 }}} 
    39  
    40 To start it immediately without reboot: 
    41 {{{ 
    4238sudo launchctl start com.deluged 
    4339}}} 
    4440 
     41== Logging == 
     42To enable logging modify the `ProgramArguments array` and add the command options from [http://dev.deluge-torrent.org/wiki/Troubleshooting#EnableDelugeLogging Deluge Logging] e.g.: 
    4543 
     44{{{ 
     45<string>/opt/local/bin/deluged</string> 
     46<string>-d</string> 
     47<string>-L</string> 
     48<string>error</string> 
     49<string>-l</string> 
     50<string>/Users/deluged/Library/Logs/deluged.log</string> 
     51}}}