[systemd-devel] proper way for shutdown script
Lennart Poettering
lennart at poettering.net
Wed Oct 5 12:53:30 UTC 2016
On Wed, 05.10.16 14:40, Xen (list at xenhideout.nl) wrote:
> 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.
That depends on the distro, I guess. At least on Fedora native unit files
always take precedence.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list