[systemd-devel] blocking service on shutdown

Michael Biebl mbiebl at gmail.com
Sun Sep 2 17:15:42 UTC 2018


2018-09-02 15:37 GMT+02:00 Ralf Sieger <Ralf.Sieger at gmx.net>:
> Hi,
>
> I want my system to pause on shutdown to wait till my backup has finished if
> it is running.

I would suggest using an inhibitor lock when running your backup.
See https://www.freedesktop.org/wiki/Software/systemd/inhibit/

That's exactly the use-case it was designed for.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list