[systemd-devel] failing unmounts during reboot

Lennart Poettering lennart at poettering.net
Thu Jul 25 11:43:56 UTC 2019


On Do, 25.07.19 13:29, Frank Steiner (fsteiner-mail1 at bio.ifi.lmu.de) wrote:

> Silvio Knizek wrote:
>
> > the proper approach would be to define the dependency of the generated
> > .service to the mount point with a drop-in and RequiresMountsFor=. See
> > man:systemd.unit for more information.
>
> How would that work for init.d scripts?
>
> > Also the systemd-sysv-generator can only do so much.
>
> 1) If the systemd-sysv-generator creates wrapper .service files on-the-fly,
>    is it possible to hook into those with dropins? The man page didn't
>    give much information.

Yes.

> 2) If init.d scripts are wrapped by .service files, shouldn't the
>    processes spawned by these scripts be killed when shutting down?

No, for compat with sysv that's not what we do. "/etc/init.d/fooobar
stop" didn't do any such clean-up and neither do we hence.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list