[systemd-devel] Script in /usr/lib/systemd/system-shutdown not executed on init 6

Benoit SCHMID Benoit.Schmid at unige.ch
Wed Nov 23 12:42:12 UTC 2016


Hello,

On 11/23/2016 11:55 AM, Lennart Poettering wrote:
> The scripts dropped there are executed very late during the shutdown
> process at a time where all processes have already been killed and all
> mount points have been unmounted or at least remounted
> read-only.

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).

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.

-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

     Benoit Schmid              Tel: (+41-22) 379-7209

     University of Geneva - Information Technology Division

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ 



More information about the systemd-devel mailing list