Kodi Community Forum
Linux Delay autostart of Sickbeard in XBMCbuntu - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Linux Delay autostart of Sickbeard in XBMCbuntu (/showthread.php?tid=177874)



Delay autostart of Sickbeard in XBMCbuntu - valloq - 2013-11-12

Complete Linux/Ubuntu nerd here, so please bare with me if I need things spelled out.

I followed this guide for installing Sickbeard and getting it to autostart on boot, which works perfectly:
http://www.linuxplained.com/install-sick-beard-on-ubuntu/2/

However, I'm finding that the program is actually starting before my ethernet even connects, and it's throwing some errors. How do I delay Sickbeard to not start until the ethernet is connected?Huh


RE: Delay autostart of Sickbeard in XBMCbuntu - negge - 2013-11-12

Could you paste the whole startup script (/etc/init.d/sickbeard) on pastebin and add a link here?


RE: Delay autostart of Sickbeard in XBMCbuntu - drivesoslow - 2013-11-12

Just change the startup to later with update-rc.d. Be default it sets the priority to 20, you could set it to something higher to make it start later.

http://www.debuntu.org/how-to-managing-services-with-update-rc-d/

Code:
sudo update-rc.d sickbeard remove
sudo update-rc.d sickbeard defaults 90



RE: Delay autostart of Sickbeard in XBMCbuntu - negge - 2013-11-13

That is one way to do it, what I had in mind was to edit the magic comments on top of the file (assuming this is a real init script, not some hack job) to indicate that it depends on the network.


RE: Delay autostart of Sickbeard in XBMCbuntu - valloq - 2013-11-14

drivesoslow, I tried the method you posted:

Code:
sudo update-rc.d sickbeard remove
sudo update-rc.d sickbeard defaults 90

But looks like it's still not loading after the ethernet connects. Any other methods I can try?

negge: Here's the link to the init.ubuntu (init.d/sickbeard) file:

https://github.com/midgetspy/Sick-Beard/blob/development/init.ubuntu


RE: Delay autostart of Sickbeard in XBMCbuntu - negge - 2013-11-14

You could try changing "Required-Start: $local_fs $network $remote_fs" to "Required-Start: $local_fs $network $remote_fs $NetworkManager", and remove the "Should-Start" and "Should-Stop" lines. I don't know why depending on $network is not enough, I guess it's typical Ubuntu bullshit.


RE: Delay autostart of Sickbeard in XBMCbuntu - valloq - 2013-11-15

Blah, that didn't seem to do it either...


RE: Delay autostart of Sickbeard in XBMCbuntu - drivesoslow - 2013-11-16

My only other suggestion is to remove NetworkManager

http://askubuntu.com/questions/249944/how-can-i-completely-remove-networkmanager