Page 1 of 1
Shutdown when queue done
Posted: April 13th, 2014, 1:57 pm
by do0fY
How can i force sabnzbd to shotdown my ubuntu server, when the queue is done?
Re: Shutdown when queue done
Posted: April 13th, 2014, 4:14 pm
by shypike
In the menu under the yellow down arrow at the top right of the queue,
there is an entry called "On Finish".
Re: Shutdown when queue done
Posted: April 15th, 2014, 5:05 am
by do0fY
Saw that, but this option has to be set every time again AND even when i say "Shutdown Computer", sothing happens

Re: Shutdown when queue done
Posted: April 15th, 2014, 5:59 am
by jcfp
Sab simply sends a call to the os through dbus. What the os does with that isn't quite that straightforward though. From the sab's perspective, the job is done as soon as it sends the request to the os, so you may have better luck getting a detailed answer asking at a forum dedicated to that.
Other than the need to have python-dbus installed, you may also have to configure your system to actually allow the user running sab to shutdown the system. The underlying mechanism differs between various ubuntu releases, nowadays it's mostly one of policykit, upower, consolekit, logind; see e.g.
here. The relevant policies and restrictions can also distinguish between whether or not there are multiple logged-in users. And somewhat counterintuitive, you may not have such rights even if you can readily shutdown/reboot from the graphical interface.
A trial run could be to shutdown from the command line as the user running sab
without using or bypassing sudo, i.e.
shutdown -h now (I didn't test the syntax, for obvious reasons).