Re: blocking service on shutdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
 
 
Gesendet: Sonntag, 02. September 2018 um 19:15 Uhr
Von: "Michael Biebl" <mbiebl@xxxxxxxxx>
An: "Ralf Sieger" <Ralf.Sieger@xxxxxxx>
Cc: "systemd Mailing List" <systemd-devel@xxxxxxxxxxxxxxxxxxxxx>
Betreff: Re: blocking service on shutdown
2018-09-02 15:37 GMT+02:00 Ralf Sieger <Ralf.Sieger@xxxxxxx>:
> 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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux