Page 1 of 1

Sabnzbd service is not starting reliably: Signal 15

Posted: April 6th, 2021, 9:53 am
by skaface
I recently updated sabnzbd from a (quite) old version.
During/after the update I had some problems with user permissions and therefore adjusted my installation to let sab run from a dedicated user sabnzbd and start it via /etc/systemd/system/sabnzbdplus.service which looks like this:

Code: Select all

#/usr/lib/systemd/system/sabnzbdplus.service
[Unit]
Description=Sabnzbd
Wants=network-online.target
After=network-online.target

[Service]
User=sabnzbd
Group=media

ExecStart=/usr/bin/sabnzbdplus --config-file /home/sabnzbd/.sabnzbd/sabnzbd.ini --logging 1 --daemon
Type=forking

Restart=on-failure

[Install]
WantedBy=multi-user.target
I (obviously) only have very little understanding of how systemd works and only "cobbled this together" based on different infos I found on the internet. Whilst this does work some times, it oftentimes gives me the following error on startup:
...
2021-04-06 16:47:03,758::INFO::[notifier:122] Sending notification: Warning - Signal 15 caught, saving and exiting... (type=warning, job_cat=None)
2021-04-06 16:47:03,757::WARNING::[__init__:210] Signal 15 caught, saving and exiting...
2021-04-06 16:47:03,758::INFO::[__init__:460] [N/A] Performing SABnzbd shutdown
2021-04-06 16:47:03,758::INFO::[__init__:367] SABnzbd shutting down...
...
If this happens I simply run sudo systemctl restart sabnzbdplus.service a few times until it successfully starts without the "Signal 15 interruption".

I'd really appreciate some guidance on how to "make the script right" ;)

Thanks & best regards,

Mike

Re: Sabnzbd service is not starting reliably: Signal 15

Posted: April 6th, 2021, 12:50 pm
by safihre
I'm no expert either. Did you install from the PPA as mentioned on our wiki?

This is the example script we include: https://github.com/sabnzbd/sabnzbd/blob ... 40.service
Small differences, maybe try the type to be Simple.

Re: Sabnzbd service is not starting reliably: Signal 15

Posted: April 9th, 2021, 1:19 am
by skaface
Hi there,

I just gave it a shot and installed completely from scratch by simply following the steps described in the wiki. Everything seems to be working now as expected. Not sure why I had troubles with this in the first place 🤷‍♂️

Thanks & best regards!