diff --git a/CHANGES.md b/CHANGES.md index a7ceb3d3..19bcf3bc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/init-scripts/init.systemd b/init-scripts/init.systemd index 109fca19..739542cb 100755 --- a/init-scripts/init.systemd +++ b/init-scripts/init.systemd @@ -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