I have added mono /opt/NzbDrone/NzbDrone.exe
to /etc/rc.local
in my Raspberry Pi 2 but Sonarr doesn’t start at boot. As OSMC uses Debian Jessie I cannot use upstart
as it uses systemd
.
Here is the file:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
nzbget -D
/usr/bin/mono /opt/NzbDrone/NzbDrone.exe
exit 0
This did the trick!
Neither github solutions work, I’ve tried them already. The top one you posted doesn’t make any sense to me as I’m new at this. Can I not just add the correct command to my file?
You create a new file in a different location with the contents listed there, if you’re having issues you can reply as a new topic (so they are linked) and ask the question, so that thread doesn’t get bloated, but you can still get help (or just @ mention the author in this thread and ask for help).
osmc@osmc:~$ sudo systemctl daemon-reload
osmc@osmc:~$ sudo systemctl enable sonarr
Failed to execute operation: Bad message
osmc@osmc:~$ systemctl start sonarr
Failed to start sonarr.service: Access denied
osmc@osmc:~$ sudo systemctl start sonarr
Failed to start sonarr.service: Unit sonarr.service failed to load: Bad message. See system logs and 'systemctl status sonarr.service' for details.
osmc@osmc:~$
Is what happens when I try this the top link you provided
Sorry I can’t help you there, I don’t use systemd myself.
@Ice_Nine - any thoughts on this one? Its outside of my expertise.
Can you post the output of “systemctl status sonarr.service -l”? (or alternately, journalctl --unit sonarr.service -l)
Thanks
See above, I added /usr/bin/mono
to the start of mono....
That sorted it! It appears that an absolute file path was required