[Not Solved]
Dec 04, 2016, 10:26 PM
(This post was last modified: Dec 04, 2016, 10:27 PM by Garret88.)
I installed SickRage on a Raspberry Pi 1 Model B. Despite I have enabled the service to start when booting with the command:
Everytime I reboot the raspberry pi, SickRage does not start automatically. When I give the status command, I get a fail in starting its daemon:
This is the content of the SickRage file service (/etc/systemd/system/sickrage.service):
However, if I give the start command to its service, it starts and works correctly:
Therefore, I wonder why it does not work when booting :/
Code:
sudo systemctl enable sickrage
Everytime I reboot the raspberry pi, SickRage does not start automatically. When I give the status command, I get a fail in starting its daemon:
Code:
pi@raspberrypi:~ $ sudo systemctl status sickrage.service
● sickrage.service - SickRage Daemon
Loaded: loaded (/etc/systemd/system/sickrage.service; enabled)
Active: failed (Result: timeout) since Sun 2016-12-04 22:48:54 CET; 1min 40s ago
Process: 343 ExecStart=/usr/bin/python2.7 /home/pi/SickRage/SickBeard.py -q --daemon --nolaunch --datadir=/home/pi/.SickRage-Data (code=killed, signal=TERM)
Dec 04 22:47:12 raspberrypi systemd[1]: Starting SickRage Daemon...
Dec 04 22:48:54 raspberrypi systemd[1]: sickrage.service start operation timed out. Terminating.
Dec 04 22:48:54 raspberrypi systemd[1]: Failed to start SickRage Daemon.
Dec 04 22:48:54 raspberrypi systemd[1]: Unit sickrage.service entered failed state.
pi@raspberrypi:~ $
This is the content of the SickRage file service (/etc/systemd/system/sickrage.service):
Code:
### Configuration
[Unit]
Description=SickRage Daemon
[Service]
User=pi
Group=pi
Type=forking
GuessMainPID=no
ExecStart=/usr/bin/python2.7 /home/pi/SickRage/SickBeard.py -q --daemon --nolaunch --datadir=/home/pi/.SickRage-Data
[Install]
WantedBy=multi-user.target
However, if I give the start command to its service, it starts and works correctly:
Code:
pi@raspberrypi:~ $ sudo systemctl start sickrage.service
pi@raspberrypi:~ $ sudo systemctl status sickrage.service
● sickrage.service - SickRage Daemon
Loaded: loaded (/etc/systemd/system/sickrage.service; enabled)
Active: active (running) since Sun 2016-12-04 23:17:08 CET; 9min ago
Process: 5267 ExecStart=/usr/bin/python2.7 /home/pi/SickRage/SickBeard.py -q --daemon --nolaunch --datadir=/home/pi/.SickRage-Data (code=exited, status=0/SUCCESS)
CGroup: /system.slice/sickrage.service
└─5478 /usr/bin/python2.7 /home/pi/SickRage/SickBeard.py -q --daemon --nolaunch --datadir=/home/pi/.SickRage-Data
Dec 04 23:17:08 raspberrypi systemd[1]: Started SickRage Daemon.
pi@raspberrypi:~ $
Therefore, I wonder why it does not work when booting :/