[LIVE] nzbget at startup - 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: [LIVE] nzbget at startup (/showthread.php?tid=79262) |
[LIVE] nzbget at startup - rozner9124 - 2010-08-19 Hi, I've just recently got XBMC live running and it's working great. With much difficulty I've managed to get nzbget working. My only problem is that I can't get it start automatically. I have to ssh into the xbmc pc and start it manually whenever I turn the system on. After some googling I found a startup script... Code: #!/bin/sh Then some more googling led me to this... sudo update-rc.d defaults It still doesn't work. I'm not sure if the script is running and then failing. I can't see any log messages. When XBMC boots there are 3 or 4 lines that appear but I can't read them since it's always blocked by the OSD on my TV and it's there for about half a second. I tried find a log that would show these messages but have been unsuccessful with that. I've also tried update-rc.d with various different start, stop numbers to see if it changes anything but no difference. Also I should mention that I have tested the startup script manually and it works fine. Just not at startup. It would be really nice to get this working as I've installed samba so I can access the nzb drop directly from any PC on the network without the need to ssh into it and run commands. Thanks for any help with this - Xenomes - 2010-08-19 Autostart NZBGet Get the autostart script with these commands: Code: sudo nano /etc/init.d/nzbget Code: #!/bin/sh Code: sudo chmod 755 /etc/init.d/nzbget Code: sudo update-rc.d nzbget defaults - rozner9124 - 2010-08-19 Thanks, I'm at work now but I'll try that when I get home - rozner9124 - 2010-08-19 Actually this looks a lot like what I tried already and it's the same problem. Any other ideas? For info... I compiled nzbget from source. Not sure if this makes any difference. - rozner9124 - 2010-08-19 Update. I have determined that the script is definitely running at startup but the process is not starting correctly. Unfortunately nzbget doesn't seem to generate any log explaining why it doesn't start... - rozner9124 - 2010-08-19 OK I figured it out, so in case anyone else ever runs into this problem. The problem was that it was running as "root" and looking for the config file in /root instead of /home/xbmc. I found this by putting "ps -ef|grep nzbget > /home/xbmc/nzblog" into the startup script right after the call and I noticed it was running under root and executing /etc/rc2.d/S20nzbget. Then I entered into root mode to test this (sudo -i). Trying to run it as root showed the message that the config file was not found. So I've change my script to: Code: su xbmc -c "/usr/local/bin/nzbget -D" Now it works fine. This was really frustrating yet such a simple solution. Anyway I hope this helps someone down the road. RE: [LIVE] nzbget at startup - war59312 - 2013-02-12 Thanks Xenomes! Here is my startup script. Running NZBGet 9.1 on Ubuntu Server 12.10 Code: # NZBGet With Nice And IONice Applied Updated Version: Code: ### BEGIN INIT INFO |