[systemd-devel] systemd-inhibit don't work

Reindl Harald h.reindl at thelounge.net
Mon Aug 10 13:05:19 UTC 2020


well, i would expect that the reboot in the scond ssh-session is
refused.......

[root at master:~]$ /usr/bin/systemd-inhibit --what=shutdown --who=root
--why="Backup in progress" --mode=block sleep 600

[root at master:~]$ /usr/bin/systemd-inhibit; systemctl reboot
WHO  UID USER PID COMM            WHAT     WHY                MODE
root 0   root 569 systemd-inhibit shutdown Backup in progress block

1 inhibitors listed.
[root at master:~]$ Connection to master.thelounge.net closed by remote host.
Connection to master.thelounge.net closed.
[harry at srv-rhsoft:~]$


More information about the systemd-devel mailing list