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


Ignore:
Timestamp:
06/18/2019 08:23:59 AM (2 years ago)
Author:
Cas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UserGuide/Service/launchd

    v2 v3  
    1 = launchd Service Scripts = 
    2  
    3 == User Management == 
    4  
    5 The 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 == 
    8  
    9 ''Note: The path to deluge assumes installation using Macports and will need modified if using `Deluge.app`.'' 
    10  
    11 Create the file `/Library/LaunchDaemons/com.deluged.plist` containing the following: 
    12 {{{ 
    13 <?xml version="1.0" encoding="UTF-8"?> 
    14 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
    15 <plist version="1.0"> 
    16 <dict> 
    17 <key>Label</key> 
    18 <string>com.deluged</string> 
    19 <key>ProgramArguments</key> 
    20 <array> 
    21 <string>/opt/local/bin/deluged</string> 
    22 <string>-d</string> 
    23 </array> 
    24 <key>UserName</key> 
    25 <string>deluge</string> 
    26 <key>RunAtLoad</key> 
    27 <true/> 
    28 <key>KeepAlive</key> 
    29 <true/> 
    30 </dict> 
    31 </plist> 
    32 }}} 
    33  
    34  
    35 Set the service to load on startup and then start it: 
    36 {{{ 
    37 sudo launchctl load -w /Library/LaunchDaemons/com.deluged.plist 
    38 sudo launchctl start com.deluged 
    39 }}} 
    40  
    41 == Logging == 
    42 To enable logging modify the `ProgramArguments array` and add the command options from [http://dev.deluge-torrent.org/wiki/Troubleshooting#EnableDelugeLogging Deluge Logging] e.g.: 
    43  
    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 }}} 
     1Moved to: https://deluge.readthedocs.io/en/latest/how-to/launchd-service.html