On Do, 25.07.19 13:46, Frank Steiner (fsteiner-mail1@xxxxxxxxxxxxxx) 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 _______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel