(5th Oct, 2013 08:35 PM)cjvanzwol Wrote: [ -> ]This would be very usefull for me, but I can not seem to make ik work. I think I followed all the steps correctly.
Added the addon
Chown to root with chmod 755
Could not change the chmod +x, but this seemed to be standard by checking with command file.
Changed transmission init.d
Downloaded init.d for sickbeard from this forum
Changed settings
Both processes run in group download.
Added lines to visudo and changed "xbian" to "pi" because i run Raspbmc (might that be a problem?)
If I check ps -g download it still says transmission-da and sickbeard (the only two processes I have for now) even if screensaver (dim) is off.
I used the init.d from this forum for sickbeard and just changed the standard init.d for transmission. So I would guess the sickbead python should stop.
(I scheduled transmission to download only at night)
Is there any way there could be a XBMC notification to check if the script ran successfully?
If you need a more detailed destruction of my situation, I can take the time to write this. For now I hope you can help.
The processes doesn't dissapear from the process list, because they only get paused.
To see if a process is paused just check it's status. You can see it like this with
ps | grep transmission
Terminal
xbian 1429 11.9 2.2 51972 8624 ? TNl Oct03 304:31 /usr/local /bin/transmission-daemon -f -g /etc/transmission/
That process is paused because it has a T in the status section.
Terminal
xbian 1429 11.8 2.1 51972 8396 ? SNl Oct03 304:33 /usr/local/bin/transmission-daemon -f -g /etc/transmission/
You can see there that the T has changed to an S, that means it isn't paused.
To check if you have done the visudo part correctly, try to do something with privileges to the file (with the sudo command) and check if it asks for your password.
Terminal
xbian@xbian ~ $ sudo -K
xbian@xbian ~ $ sudo nano /home/xbian/.xbmc/addons/service.procmanager/resources/startall.py
The sudo -K command is to reset the sudo password cache, so that it asks for it even if you've just used it
If you've done it right, it shouldn't ask for a password.
I should say that I'm now using just the priority to manage the background processes, I don't stop them when playing stuff, I just make their priority really low and the xbmc one high, so that it always gives cpu preference to xbmc.
I have been testing it for a little while because that's the way that xbian download package works and wanted to try it out.
Sometimes you can have a bit of stuttering, but just in the beginning, when it's starting to redistribute the cpu.
Try it out! It's a lot easier and maybe it does the job for you!
I have written a guide on managing process priorities if you don't know how to implement it
http://forum.xbian.org/thread-892.html
I'm now using priority 6 (low) for the downloads and -6 for xbmc.
Nevertheless, if you still want to completely pause the downloads I can help you.
PD: You should try xbian, it works great and it has an already configurated package that automatically installs couchpotato,sickbeard,transmission,headphones,nzbget. (You can easily disable each of them if you want to)
Here is the thread
http://forum.xbian.org/thread-1018.html