I've just installed Sick-Beard on my server. Starting the service via SSH works just fine, as I issue the command
sudo service sickbeard start
However, I can't get the service to start on boot. There are some things I'm quite sure are incorrect, but I don't know what the correct settings should be.
sudo nano /etc/default/sickbeard
currently shows
SB_USER=root
SB_PROFILE=/opt/sickbeard/pid
and as for ownership and permissions,
ls -l /opt
shows
drwxrwxrwx 10 root root 4096 Sep 28 19:24 sickbeard
Now, I'm pretty sure I should not be using root everywhere, and instead I've created a user 'sickbeard', but this does not work either, probably since this user doesn't have the right permissions. (What these should be, I don't know.)
Furthermore, I've followed http://vassie.me/installing-sick-beard-on-ubuntu-server/ with respect to /etc/init.d/sickbeard
Now, basically, if I issue the first command above (sudo service sickbeard start|stop
) it works just fine, but without sudo I get
diana@SERVER:~$ service sickbeard start
Starting SickBeard
start-stop-daemon: unable to set gid to 0 (Operation not permitted)
I'm out of my depth here, have searched back and forth but can't get the service to start without the sudo command which, in my mind, is preventing it from starting on reboot. But I might be wrong, it might be something else entirely, I just don't know what...
Any help is most welcome.