From: Zbigniew Jędrzejewski-Szmek Date: Sun, 29 Jan 2017 17:45:51 +0000 (-0500) Subject: units: drop KillMode= from initrd-switch-root.service X-Git-Tag: v233~196^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0af9a194ca0243fcb206499116e28612f571bd91;p=thirdparty%2Fsystemd.git units: drop KillMode= from initrd-switch-root.service The service already has DefaultDeps disabled, so systemd should not try to stop it. And if it *does* get stopped, we don't want the zombie process around. KillMode=none does not change anything in the killall() phase, and we already use argv[0][0] = '@' to protect against that anyway. KillMode=none should not be useful in normal operation, so let's leave it out. --- diff --git a/units/initrd-switch-root.service.in b/units/initrd-switch-root.service.in index 219748d19be..d31497f5e32 100644 --- a/units/initrd-switch-root.service.in +++ b/units/initrd-switch-root.service.in @@ -16,4 +16,3 @@ AllowIsolate=yes [Service] Type=oneshot ExecStart=@rootbindir@/systemctl --no-block switch-root /sysroot -KillMode=none