Merge pull request #734 from JackDandy/feature/ChangeInitSystemD

Change init.systemd and SHUTDOWN signal handler.
This commit is contained in:
JackDandy 2016-07-11 17:54:07 +01:00 committed by GitHub
commit f65bbcff14
2 changed files with 7 additions and 6 deletions

View file

@ -105,6 +105,7 @@
* Add qBitTorrent to Search Settings/Torrent Search
* Add "Test NZBGet" client to Search Settings/NZB Search/NZBGet
* Change include x265 category when searching IPT provider
* Change init.systemd to use python2 binary and recommended installation paths
[develop changelog]
* Change send nzb data to NZBGet for Anizb instead of url

View file

@ -1,4 +1,4 @@
# Sickbeard systemd service unit file
# SickGear systemd service unit file
#
# Configuration Notes
#
@ -24,21 +24,21 @@
### Example Using SickGear as daemon with pid file
# Type=forking
# PIDFile=/var/run/sickgear/sickgear.pid
# ExecStart=/usr/bin/python /opt/sickgear/SickBeard.py -q --daemon --nolaunch --pidfile=/var/run/sickgear/sickgear.pid --datadir=/opt/sickgear
# ExecStart=/usr/bin/python2 /opt/sickgear/app/SickBeard.py -q --daemon --nolaunch --pidfile=/var/run/sickgear/sickgear.pid --datadir=/opt/sickgear/data
## Example Using SickGear as daemon without pid file
# Type=forking
# GuessMainPID=no
# ExecStart=/usr/bin/python /opt/sickgear/SickBeard.py -q --daemon --nolaunch --datadir=/opt/sickgear
# ExecStart=/usr/bin/python2 /opt/sickgear/app/SickBeard.py -q --daemon --nolaunch --datadir=/opt/sickgear/data
### Example Using simple
# Type=simple
# ExecStart=/usr/bin/python /opt/sickgear/SickBeard.py -q --nolaunch
# ExecStart=/usr/bin/python2 /opt/sickgear/app/SickBeard.py -q --nolaunch
### Example Using simple with EnvironmentFile where SB_DATA=/home/sickgear/.sickgear in /etc/sickgear.conf
# Type=simple
# EnvironmentFile=/etc/sickgear.conf
# ExecStart=/usr/bin/python /opt/sickgear/SickBeard.py -q --nolaunch --datadir=${SB_DATA}
# ExecStart=/usr/bin/python2 /opt/sickgear/app/SickBeard.py -q --nolaunch --datadir=${SB_DATA}
### Configuration
@ -51,7 +51,7 @@ Group=sickgear
Type=forking
GuessMainPID=no
ExecStart=/usr/bin/python /opt/sickgear/SickBeard.py -q --daemon --nolaunch --datadir=/opt/sickgear
ExecStart=/usr/bin/python2 /opt/sickgear/app/SickBeard.py -q --daemon --nolaunch --datadir=/opt/sickgear/data
[Install]
WantedBy=multi-user.target