[Packaging] Add updated launchd scripts

Copy from Trac UserGuide and updated with proper naming and deluge-web
version.

The bin location is default for brew with pip install.

Closes: #3073
This commit is contained in:
Calum Lind 2019-06-08 19:29:20 +01:00
parent 957cd5dd9c
commit 879a397215
3 changed files with 67 additions and 9 deletions

View File

@ -0,0 +1,29 @@
<?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>org.deluge-torrent.deluge-web</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/deluge-web</string>
<string>-d</string>
<string>-L</string>
<string>error</string>
<string>-l</string>
<string>/var/log/deluge-web.log</string>
</array>
<key>StandardOutPath</key>
<string>/tmp/deluge-web.stdout</string>
<key>StandardErrorPath</key>
<string>/tmp/deluge-web.stderr</string>
<!-- To enable running as 'deluge' user remove comments.
<key>UserName</key>
<string>deluge</string>
-->
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,29 @@
<?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>org.deluge-torrent.deluged</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/deluged</string>
<string>-d</string>
<string>-L</string>
<string>error</string>
<string>-l</string>
<string>/var/log/deluged.log</string>
</array>
<key>StandardOutPath</key>
<string>/tmp/deluged.stdout</string>
<key>StandardErrorPath</key>
<string>/tmp/deluged.stderr</string>
<!-- To enable running as 'deluge' user remove comments.
<key>UserName</key>
<string>deluge</string>
-->
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>