]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: drop KillMode= from initrd-switch-root.service
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 29 Jan 2017 17:45:51 +0000 (12:45 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 31 Jan 2017 06:34:40 +0000 (01:34 -0500)
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.

units/initrd-switch-root.service.in

index 219748d19bef2e52afa37ee25749c9d4958d9bba..d31497f5e3299818e2830b053b04db702e744a99 100644 (file)
@@ -16,4 +16,3 @@ AllowIsolate=yes
 [Service]
 Type=oneshot
 ExecStart=@rootbindir@/systemctl --no-block switch-root /sysroot
-KillMode=none