Am 29.03.2015 um 17:35 schrieb Michael Biebl:
> Am 29.03.2015 um 11:42 schrieb Matthias Bodenbinder:
>> Am 28.03.2015 um 18:51 schrieb Michael Biebl:
>>> You can run something like
>>>
>>> systemd-inhibit --what=shutdown --mode=block /bin/sleep 3600
>>>
>>> to block shutdown for 1h.
>>
>> This does NOT work. I tested it with debian testing.
> 
> Are you sure you are using systemd as PID 1?

PID 1 is /sbin/init 
with
lrwxrwxrwx 1 root root 20 Feb 13 12:22 /sbin/init -> /lib/systemd/systemd

All my tests where with local root: KDE+konsole, as regular user. Either 
executing "poweroff" via "su -" in the konsole or clicking shutdown button in 
KDE.

Example:

In konsole #1:
        su -
        systemd-inhibit --what="idle:sleep:shutdown" --mode=block sleep 3600

In konsole #2:
        su - 
        poweroff

The computer is just powered off.

Matthias



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/mfenu3$qqf$1...@ger.gmane.org

Reply via email to