[systemd-devel] failing unmounts during reboot

Lennart Poettering lennart at poettering.net
Thu Jul 25 12:42:19 UTC 2019


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

> Mantas Mikulėnas wrote:
>
> > I think that's a deliberate decision made in the
> > systemd-sysv-generator. Note how the generated .service files have
> > "KillMode=process" (and even "RemainAfterExit=yes"). The default for
> > native services is to kill the entire cgroup, and IIRC that even was
> > one of the main reasons for using cgroups.
> > Most likely it's there to retain compatibility with some of the
> > weirder init.d scripts – those which don't start any daemons; those
> > which start several; and so on and so on.
>
> Thanks a lot! I found the service file in /run/systemd/generator.late.
> Anyway, I cannot think of any init.d script where sub processes or
> anything should be left running when the script is stopped, so
> KillMode=process seems strange. Maybe Lennart knows why this decision
> was taken.

Things like ssh when run as a sysv script: people expect that shutting
down ssh doesn't kill all your children, and it didn't in sysv... And
there are similar things.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list