From: Lennart Poettering Date: Tue, 26 May 2020 12:12:56 +0000 (+0200) Subject: units: remove KillMode=process in our regular gettys X-Git-Tag: v246-rc1~269^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=021acbc188a53fa528161578305406c5c9c808b2;p=thirdparty%2Fsystemd.git units: remove KillMode=process in our regular gettys In our regular gettys the actual shell commands live the the session scope anyway (as long as logind is used). Hence, let's avoid KillMode=process, it serves no purpose and is simply unsafe since it disables systemd's own process lifecycle management. --- diff --git a/units/console-getty.service.m4 b/units/console-getty.service.m4 index 3c553240a2d..7c3992e8e03 100644 --- a/units/console-getty.service.m4 +++ b/units/console-getty.service.m4 @@ -30,7 +30,9 @@ UtmpIdentifier=cons TTYPath=/dev/console TTYReset=yes TTYVHangup=yes +m4_ifdef(`ENABLE_LOGIND',, KillMode=process +)m4_dnl IgnoreSIGPIPE=no SendSIGHUP=yes diff --git a/units/container-getty@.service.m4 b/units/container-getty@.service.m4 index 087ab7f9b10..e4f9ae57916 100644 --- a/units/container-getty@.service.m4 +++ b/units/container-getty@.service.m4 @@ -36,6 +36,8 @@ UtmpIdentifier=pts/%I TTYPath=/dev/pts/%I TTYReset=yes TTYVHangup=yes +m4_ifdef(`ENABLE_LOGIND',, KillMode=process +)m4_dnl IgnoreSIGPIPE=no SendSIGHUP=yes diff --git a/units/getty@.service.m4 b/units/getty@.service.m4 index 80e793bb73d..087d6866660 100644 --- a/units/getty@.service.m4 +++ b/units/getty@.service.m4 @@ -47,7 +47,9 @@ TTYPath=/dev/%I TTYReset=yes TTYVHangup=yes TTYVTDisallocate=yes +m4_ifdef(`ENABLE_LOGIND',, KillMode=process +)m4_dnl IgnoreSIGPIPE=no SendSIGHUP=yes diff --git a/units/serial-getty@.service.m4 b/units/serial-getty@.service.m4 index 757b86ab2f6..cab89fb4268 100644 --- a/units/serial-getty@.service.m4 +++ b/units/serial-getty@.service.m4 @@ -40,7 +40,9 @@ UtmpIdentifier=%I TTYPath=/dev/%I TTYReset=yes TTYVHangup=yes +m4_ifdef(`ENABLE_LOGIND',, KillMode=process +)m4_dnl IgnoreSIGPIPE=no SendSIGHUP=yes