[systemd-devel] Script in /usr/lib/systemd/system-shutdown not executed on init 6
Reindl Harald
h.reindl at thelounge.net
Wed Nov 23 14:03:11 UTC 2016
Am 23.11.2016 um 13:42 schrieb Benoit SCHMID:
> Is there an easy way to create a systemd service that would be stopped
> very early
> at the shutdown and would avoid the other services stop command to be
> executed.
>
> In other world, on my XXX server, the most important service is XXX.
> Stopping XXX takes time (~1 min per XXX system).
than you need only to adjust "DefaultTimeoutStopSec" to ensure it does
not get killed and order services proper
> Therefore, in case of init 6, I would like to stopxxx
> When stopxxx finishes or timeouts then systemd
> could start stopping the other services.
>
> Is there an easier way than trying After= and Before= options?
>
> Thanks for the time you have taken to answer my questions
easier then define proper dependencies with Before/after?
More information about the systemd-devel
mailing list