mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Merge pull request #734 from JackDandy/feature/ChangeInitSystemD
Change init.systemd and SHUTDOWN signal handler.
This commit is contained in:
commit
f65bbcff14
2 changed files with 7 additions and 6 deletions
|
@ -105,6 +105,7 @@
|
||||||
* Add qBitTorrent to Search Settings/Torrent Search
|
* Add qBitTorrent to Search Settings/Torrent Search
|
||||||
* Add "Test NZBGet" client to Search Settings/NZB Search/NZBGet
|
* Add "Test NZBGet" client to Search Settings/NZB Search/NZBGet
|
||||||
* Change include x265 category when searching IPT provider
|
* Change include x265 category when searching IPT provider
|
||||||
|
* Change init.systemd to use python2 binary and recommended installation paths
|
||||||
|
|
||||||
[develop changelog]
|
[develop changelog]
|
||||||
* Change send nzb data to NZBGet for Anizb instead of url
|
* Change send nzb data to NZBGet for Anizb instead of url
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Sickbeard systemd service unit file
|
# SickGear systemd service unit file
|
||||||
#
|
#
|
||||||
# Configuration Notes
|
# Configuration Notes
|
||||||
#
|
#
|
||||||
|
@ -24,21 +24,21 @@
|
||||||
### Example Using SickGear as daemon with pid file
|
### Example Using SickGear as daemon with pid file
|
||||||
# Type=forking
|
# Type=forking
|
||||||
# PIDFile=/var/run/sickgear/sickgear.pid
|
# 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
|
## Example Using SickGear as daemon without pid file
|
||||||
# Type=forking
|
# Type=forking
|
||||||
# GuessMainPID=no
|
# 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
|
### Example Using simple
|
||||||
# Type=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
|
### Example Using simple with EnvironmentFile where SB_DATA=/home/sickgear/.sickgear in /etc/sickgear.conf
|
||||||
# Type=simple
|
# Type=simple
|
||||||
# EnvironmentFile=/etc/sickgear.conf
|
# 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
|
### Configuration
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ Group=sickgear
|
||||||
|
|
||||||
Type=forking
|
Type=forking
|
||||||
GuessMainPID=no
|
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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue