Big review
This commit is contained in:
10
systemd-templates/filebrowser.service
Normal file
10
systemd-templates/filebrowser.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=File Browser web interface
|
||||
|
||||
[Service]
|
||||
User=PH_NAS_USER
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/filebrowser -d PH_NAS_DIRECTORY
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
16
systemd-templates/transmission-daemon.service
Normal file
16
systemd-templates/transmission-daemon.service
Normal file
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Transmission BitTorrent Daemon (KTO)
|
||||
Wants=transmission-vpn.service
|
||||
BindsTo=transmission-vpn.timer
|
||||
After=network.target transmission-vpn.timer
|
||||
|
||||
[Service]
|
||||
User=PH_NAS_USER
|
||||
Type=notify
|
||||
ExecStart=/usr/bin/transmission-daemon -f --log-error -a PH_AUTHORIZED_ADDRESSES -C -t -u PH_USER -v PH_PASSWORD -w PH_DL_LOCATION
|
||||
ExecStop=/bin/kill -s STOP $MAINPID
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
9
systemd-templates/transmission-vpn.service
Normal file
9
systemd-templates/transmission-vpn.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Make sure VPN is active for Transmission
|
||||
OnFailure=transmission-daemon.service
|
||||
|
||||
[Service]
|
||||
ExecStart=PH_DIRECTORY/transmission-vpn.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
9
systemd-templates/transmission-vpn.timer
Normal file
9
systemd-templates/transmission-vpn.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Regular check for VPN while Transmission is running
|
||||
BindsTo=transmission-daemon.service
|
||||
|
||||
[Timer]
|
||||
OnUnitInactiveSec=10m
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Reference in New Issue
Block a user