The plex messages are a red herring.
That's just stuff that is also wrong with your system. See questions such as Problems starting plexmediaserver on Kubuntu 15.04 for starters.
Use the systemd unit.
You don't say what list of instructions you are following in order to install SickRage on Ubuntu, but somewhere in those instructions it told you to run these commands as the superuser:
cp sickrage/init.ubuntu /etc/init.d/sickrage
chmod +x /etc/init.d/sickrage
update-rc.d sickrage defaults
These instructions are wrong for Ubuntu version 15, which as you say uses systemd not upstart. Fortunately, SickRage comes with a systemd service unit for systemd operating systems, whose installation instructions are
cp sickrage/init.systemd /etc/systemd/system/sickrage.service
systemctl preset sickrage.service
Improve upon the systemd unit that is supplied.
For what it's worth, I recommend editing that unit.
Really, this has not been tailored very well to systemd at all. But then, neither has it been tailored well to much else. The init.ubuntu
supplied with SickRage for upstart-based Ubuntu isn't even an upstart job. An upstart job has only existed for just over a month. And the developers have been doing daft things like making the systemd unit file executable. (They also made the Solaris SMF manifest, an XML data file, executable in that same change, notice.)
Set your unit up like this:
[Unit]
Description=SickBeard daemon
[Service]
# Ubuntu/Debian convention:
EnvironmentFile=-/etc/default/sickbeard
User=sickbeard
Group=sickbeard
Type=simple
WorkingDirectory=/opt/sickbeard
ExecStart=/usr/bin/python SickBeard.py --nolaunch ${SB_OPTS}
[Install]
WantedBy=multi-user.target
Bonus daemontools section
For kicks, for the entertainment of any daemontools-family-using people who reach this via a WWW search, and to demonstrate the wide applicability (even to service management systems other than systemd and upstart) of following the aforegiven points on how to run under service managers, I ran that service unit through the nosh toolset's convert-systemd-units
command, and hand-added a sh -c
to do the shell variable expansion, to produce the following daemontools-family run script:
#!/bin/nosh
#Run file generated from ./sickbeard.service
#SickBeard daemon
chdir /opt/sickbeard
setuidgid sickbeard
read-conf --oknofile /etc/default/sickbeard
sh -c 'exec /usr/bin/python SickBeard.py --nolaunch ${SB_OPTS}'
Best Answer
The headline news this week is that Ubuntu version 15.04 doesn't use upstart. It uses systemd.
You can go back to upstart, which is a question all to itself; or you can write a systemd service unit for your service; or you can swipe an already-written one. There are plenty of already-written ones about.
This
andmbpfan.service
unit by Ismail Khatib has been around since 2012, for example. However, I recommend that you edit it to saymbpfan
's "daemonization" is entirely superfluous (under both upstart and systemd); is not functionally correct in any case; and under systemd will also result in unnecessary duplicated log information, as systemd already records the log information thatmbpfan
sends to its standard output.Further reading