Sabnzbd won't start as a service on Ubuntu 11.04
Posted: August 3rd, 2011, 3:50 pm
My server is Ubuntu 11.04 x64 Server Edition. I installed Sabnzbd+ using the ppa per the instructions.
I can run it using my account, but not as a service.
Here's the installation steps I used:
Created the media group & sabnzbdplus service account:
sudo groupadd media
sudo useradd -r sabnzbdplus -G media
(My user account & the sickbeard service account are also in the media group)
I then created my sabnzbdplus directory structure:
sudo mkdir /mnt/nas/sabnzbdplus
sudo mkdir /mnt/nas/sabnzbdplus/admin
sudo mkdir /mnt/nas/sabnzbdplus/backup
sudo mkdir /mnt/nas/sabnzbdplus/downloads
sudo mkdir /mnt/nas/sabnzbdplus/downloads/complete
sudo mkdir /mnt/nas/sabnzbdplus/downloads/temporary
sudo mkdir /mnt/nas/sabnzbdplus/logs
sudo mkdir /mnt/nas/sabnzbdplus/nzb-backup
sudo mkdir /mnt/nas/sabnzbdplus/watch
sudo cp ~/.sabnzbd/sabnzbd.ini /mnt/nas/sabnzbdplus/config.ini
Fixed the permissions on the directory:
sudo chown root:media -R /mnt/nas/sabnzbdplus
sudo chmod 775 -R /mnt/nas/sabnzbdplus
And then modified the /etc/default/sabnzbdplus config with the follow entries:
USER=sabnzbdplus
CONFIG=/mnt/nas/sabnzbdplus/config.ini
And then I attempted to start the service ...
sudo /etc/init.d/sabnzbdplus start
And the service fails to start - it just says starting daemon and [Fail].
However, if I run it from my own account, it starts and runs just fine. When I browse to the website, I see it's using the configuration file from my directory, not the one specified in the /etc/default/sabnzbdplus file.
Any ideas what I've mucked up?
I can run it using my account, but not as a service.
Here's the installation steps I used:
Created the media group & sabnzbdplus service account:
sudo groupadd media
sudo useradd -r sabnzbdplus -G media
(My user account & the sickbeard service account are also in the media group)
I then created my sabnzbdplus directory structure:
sudo mkdir /mnt/nas/sabnzbdplus
sudo mkdir /mnt/nas/sabnzbdplus/admin
sudo mkdir /mnt/nas/sabnzbdplus/backup
sudo mkdir /mnt/nas/sabnzbdplus/downloads
sudo mkdir /mnt/nas/sabnzbdplus/downloads/complete
sudo mkdir /mnt/nas/sabnzbdplus/downloads/temporary
sudo mkdir /mnt/nas/sabnzbdplus/logs
sudo mkdir /mnt/nas/sabnzbdplus/nzb-backup
sudo mkdir /mnt/nas/sabnzbdplus/watch
sudo cp ~/.sabnzbd/sabnzbd.ini /mnt/nas/sabnzbdplus/config.ini
Fixed the permissions on the directory:
sudo chown root:media -R /mnt/nas/sabnzbdplus
sudo chmod 775 -R /mnt/nas/sabnzbdplus
And then modified the /etc/default/sabnzbdplus config with the follow entries:
USER=sabnzbdplus
CONFIG=/mnt/nas/sabnzbdplus/config.ini
And then I attempted to start the service ...
sudo /etc/init.d/sabnzbdplus start
And the service fails to start - it just says starting daemon and [Fail].
However, if I run it from my own account, it starts and runs just fine. When I browse to the website, I see it's using the configuration file from my directory, not the one specified in the /etc/default/sabnzbdplus file.
Any ideas what I've mucked up?