Re: Preventing the computer from shutting down.
On Thu, 30 Oct 2014, Joey Hess wrote:
> Don Armstrong wrote:
> > systemd-inhibit --who='backup script' --why='backup is running currently' \
> > --mode=block yourbackupscript;
>
> This doesn't currently prevent either /sbin/shutdown or eg, the
> lightdm menu item from shutting the system down. It does inhibit
> systemctl reboot/halt.
Huh. That seems kind of unfortunate (and weird, because /sbin/shutdown
is symlinked to systemctl here; I would have expected /sbin/shutdown to
be a special case of systemctl halt.)
This is probably at least a documentation bug, and possibly a real bug.
--
Don Armstrong http://www.donarmstrong.com
Life would be way easier
if I were easier.
-- a softer world #473
http://www.asofterworld.com/index.php?id=473
Reply to: