[systemd-devel] systemd-inhibit --what=handle-power-key broken with systemd 198

Manuel Reimer Manuel.Spam at nurfuerspam.de
Wed Mar 27 14:23:51 PDT 2013


Hello,

I'm using ArchLinux which currently uses systemd 198.

I try to inhibit the power key to get sure systemd doesn't shut down if it is 
pressed. My testcase is as follows:

# systemd-inhibit --what=handle-power-key --mode=block sleep 1000000

Now I switch to another shell to check if the inhibitor is listed:

# systemd-inhibit --list
      Who: sleep 1000000 (UID 0, PID 222)
     What: handle-power-key
      Why: Unknown reason
     Mode: block

1 inhibitors listed.

After doing so and getting sure the inhibitor really is listed, I hit the power 
key and... the system is shutting down...

For me it seems like something caused this whole thing to get broken. Can 
someone reproduce or is this only broken on ArchLinux?

Yours

Manuel Reimer



More information about the systemd-devel mailing list