Page 1 of 1

Just one action available "On queue finish:"

Posted: February 23rd, 2009, 1:47 pm
by znab
Hello,

I have installed SABnzbd+ version 0.4.6 on Antix (Debian linux distro, as they say ubuntu based, but that is above my knowledge of linux) and start it with a click on SABnzbd.py
Formerly I used SABnzbd on a Windows machine and there was a choice to shut down the PC after the queue has finished. And this worked fine.
Now I only have the choice to "Shutdown SABnzbd". I can not figure out why the choices are limited to just one. Antix is able to shut down my PC.
I know a bit of Linux. If you would describe in clear steps what to do I think I can perform the steps. Thanks for any help.

znab

Re: Just one action available "On queue finish:"

Posted: February 23rd, 2009, 2:40 pm
by shypike
The reason we don't support anything else is that there's
no consistency about power management among Unix/Linux distributions.
For us anything not Windows or OSX is just a Posix-compatible system.

Your best bet is to write a user script that does the required standby or shutdown action.
If you configure and provide user scripts, they will be available as end-of-queue actions.
(See also: http://sabnzbd.wikidot.com/user-scripts)

Re: Just one action available "On queue finish:"

Posted: February 23rd, 2009, 4:37 pm
by znab
shypike wrote: Your best bet is to write a user script that does the required standby or shutdown action.
If you configure and provide user scripts, they will be available as end-of-queue actions.
(See also: http://sabnzbd.wikidot.com/user-scripts)
Ok, I understand the reason. I've been reading the scripts part and although I know VBA I would not know how to write a script that shuts downs my PC.
Any example or direction to examples?

Thanks for SABnzbd and your answer(s).

Re: Just one action available "On queue finish:"

Posted: February 23rd, 2009, 5:14 pm
by shypike
VBA for a Unix system?  ;D

You need a shell script with a call to /sbin/shutdown and give it the right parameters.
(And that's where things get different for the variousl Posix distros).