[systemd-devel] proper way for shutdown script

Kai Krakow hurikhan77 at gmail.com
Fri Oct 7 07:40:35 UTC 2016

Am Wed, 05 Oct 2016 14:40:52 +0200
schrieb Xen <list at xenhideout.nl>:

> Xen schreef op 05-10-2016 14:37:
> > And this works. But now the service must be started first before it
> > will be called on shutdown... :-/.  
> I guess the package installer would have to start the service after 
> installation which would be a solution in that sense, it needs to
> enable the service anyway.
> Also I don't understand why /etc/init.d/libnss-ldap masks 
> /etc/systemd/system/libnss-ldap.service for the enable call.
> It will see the init script and then call the sysv thing and will
> never get to the actual service file I have created?
> Thanks for your help.

You could make a path unit that watches for changes to the
configuration file and then runs the script.


Replies to list-only preferred.

More information about the systemd-devel mailing list