I have a few usenet programs that I downloaded from GitHub and they didn't come with Systemd unit files so I grabbed a few from the net, even after modifying them with the correct arguments none of them work. The strange thing is that if I copy the ExecStart line and paste it into the terminal it runs as expected. They all complain about the same error since they all python scripts.
Here's one for SickRage
Code:
[Unit]
Description=SickRage Daemon
[Service]
User=root
Group=wheel
Type=forking
GuessMainPID=no
ExecStart=/usr/bin/python /opt/usenet/sickrage/SickBeard.py -q --daemon --nolaunch --datadir=/opt/usenet/sickrage
[Install]
WantedBy=multi-user.target
Here's the error from journalctl -xe
Code:
Oct 06 09:54:50 odroid systemd[1]: Starting SickRage Daemon...
-- Subject: Unit sickrage.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sickrage.service has begun starting up.
Oct 06 09:54:50 odroid systemd[9457]: Failed at step GROUP spawning /usr/bin/python: No such process
-- Subject: Process /usr/bin/python could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /usr/bin/python could not be executed and failed.
--
-- The error number returned by this process is 3.
Oct 06 09:54:50 odroid systemd[1]: sickrage.service: control process exited, code=exited status=216
Oct 06 09:54:50 odroid systemd[1]: Failed to start SickRage Daemon.
-- Subject: Unit sickrage.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sickrage.service has failed.
--
-- The result is failed.
Oct 06 09:54:50 odroid systemd[1]: Unit sickrage.service entered failed state.
Oct 06 09:54:50 odroid systemd[1]: sickrage.service failed.
Oct 06 09:54:50 odroid polkitd(authority=local)[589]: Unregistered Authentication Agent for unix-process:9452:3944808 (system bus name :1.47, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Code:
[root@odroid /opt]# status sickrage
● sickrage.service - SickRage Daemon
Loaded: loaded (/etc/systemd/system/sickrage.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2015-10-06 09:54:50 EDT; 2min 8s ago
Process: 9457 ExecStart=/usr/bin/python /opt/usenet/sickrage/SickBeard.py -q --daemon --nolaunch --datadir=/opt/usenet/sickrage (code=exited, status=216/GROUP)
Oct 06 09:54:50 odroid systemd[1]: Starting SickRage Daemon...
Oct 06 09:54:50 odroid systemd[1]: sickrage.service: control process exited, code=exited status=216
Oct 06 09:54:50 odroid systemd[1]: Failed to start SickRage Daemon.
Oct 06 09:54:50 odroid systemd[1]: Unit sickrage.service entered failed state.
Oct 06 09:54:50 odroid systemd[1]: sickrage.service failed.
Python definitely exists and is executable so I have no idea why it's complaining
Code:
[root@odroid /opt]# ls -lh /usr/bin|grep python
lrwxrwxrwx 1 root root 9 Mar 17 2015 python -> python2.7
lrwxrwxrwx 1 root root 9 Mar 17 2015 python2 -> python2.7
-rwxr-xr-x 1 root root 2.5M Apr 2 2015 python2.7
Code:
[root@odroid /opt]# python
Python 2.7.9 (default, Apr 2 2015, 16:04:32)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Bookmarks