On 2017-02-13 23:55, John Andersen wrote:
On 02/13/2017 2:05 PM, Carlos E. R. wrote:
On 2017-02-13 22:12, John Andersen wrote:
On 02/13/2017 10:02 AM, stakanov wrote:
[General] HaltCommand= RebootCommand=
If you put in the systemctl shutdown command into the above will it work?
Will not work unless you are root. If you are a user, it will wait or refuse till other users log out. Even an ssh session blocks it.
Well, as I mentioned in the part you trimmed, I believe this is the correct behavior.
In the command line you get a chance to enter the root password and do poweroff.
Perhaps there should be some setting roor could make to allow shutdowns with other users logged in, but I am not aware of any.
You can run the command via sudo. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))