mirror of
https://github.com/JockeTF/fimfarchive.git
synced 2024-11-22 05:17:59 +01:00
Make service files more consistent
This commit is contained in:
parent
22b6ed1c9c
commit
70b0261710
3 changed files with 7 additions and 6 deletions
|
@ -38,6 +38,7 @@
|
||||||
notify: Restart Deluge
|
notify: Restart Deluge
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: Enabled service
|
- name: Enable service
|
||||||
|
# Needed to override SysV init.
|
||||||
command: systemctl enable deluged
|
command: systemctl enable deluged
|
||||||
when: result is changed
|
when: result is changed
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Deluge Daemon
|
Description=Deluge Daemon
|
||||||
Documentation=man:deluged
|
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User={{ deluge.user }}
|
User={{ deluge.user }}
|
||||||
Group={{ deluge.user }}
|
Group={{ deluge.user }}
|
||||||
UMask=002
|
WorkingDirectory={{ deluge.home }}
|
||||||
ExecStart=/usr/bin/deluged -c {{ deluge.conf }} -d
|
ExecStart=/usr/bin/deluged -c {{ deluge.conf }} -d
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStopSec=300
|
TimeoutStopSec=300
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=OpenTracker
|
Description=OpenTracker
|
||||||
After=network.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User={{ opentracker.user }}
|
User={{ opentracker.user }}
|
||||||
WorkingDirectory={{ opentracker.conf }}
|
Group={{ opentracker.user }}
|
||||||
|
WorkingDirectory={{ opentracker.home }}
|
||||||
ExecStart=/usr/local/bin/opentracker -f "{{ opentracker.conf }}/config"
|
ExecStart=/usr/local/bin/opentracker -f "{{ opentracker.conf }}/config"
|
||||||
Restart=on-abort
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue