Hi Michael,
this solution has a couple of drawbacks:
- block will let shutdown, etc. fail, I do only need a pause/wait
- delay does not work with reboot
Regards,
Ralf
Ralf
Gesendet: Sonntag, 02. September 2018 um 19:15 Uhr
Von: "Michael Biebl" <mbi...@gmail.com>
An: "Ralf Sieger" <ralf.sie...@gmx.net>
Cc: "systemd Mailing List" <systemd-devel@lists.freedesktop.org>
Betreff: Re: [systemd-devel] blocking service on shutdown
Von: "Michael Biebl" <mbi...@gmail.com>
An: "Ralf Sieger" <ralf.sie...@gmx.net>
Cc: "systemd Mailing List" <systemd-devel@lists.freedesktop.org>
Betreff: Re: [systemd-devel] blocking service on shutdown
2018-09-02 15:37 GMT+02:00 Ralf Sieger <ralf.sie...@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?
> 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?
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel