[systemd-devel] Don't allow to restart emergency.service/rescue.service
zbyszek at in.waw.pl
Wed May 6 05:11:12 PDT 2015
On Wed, May 06, 2015 at 02:08:18PM +0200, Michael Biebl wrote:
> 2015-05-06 13:40 GMT+02:00 Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>:
> > On Wed, May 06, 2015 at 12:39:50PM +0200, Michael Biebl wrote:
> >> 2015-05-06 1:49 GMT+02:00 Cameron Norman <camerontnorman at gmail.com>:
> >> > +KillMode=process
> >> >
> >> > If I had to take a guess I would say that it was desired to let the
> >> > shell do its own process management, but Lennart can only know. Maybe
> >> > KillMode=mixed would be better?
> >> KillMode=mixed seems to work better, indeed, from a quick test and I
> >> don't see a downside using mixed.
> > KillMode=mixed is newer. RefuseManual* is rather ugly, so this approach
> > seems much nicer.
> The following services in units/ use KillMode=process:
> container-getty at .service.m4.in:KillMode=process
> getty at .service.m4:KillMode=process
> serial-getty at .service.m4:KillMode=process
> I wonder, if they should all be switched to use mixed.
Yes, maybe with the exception of debug-shell.service. Sometimes you might
want to launch strace or something and have it survive exit from the debug
More information about the systemd-devel