]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: remove KillMode=process in our regular gettys
authorLennart Poettering <lennart@poettering.net>
Tue, 26 May 2020 12:12:56 +0000 (14:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 May 2020 21:52:09 +0000 (23:52 +0200)
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.

units/console-getty.service.m4
units/container-getty@.service.m4
units/getty@.service.m4
units/serial-getty@.service.m4

index 3c553240a2dbbe6306aef3f84ed492b494003117..7c3992e8e03031157ef7cc70d06cc31b2e34721e 100644 (file)
@@ -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
 
index 087ab7f9b10b0e703ab6862d20f51ac9815a3dde..e4f9ae57916c882ac8eb4cd4ff5eb0f290b77f4f 100644 (file)
@@ -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
index 80e793bb73df61ffeba6b4da76650881edbd40c1..087d68666605047678ad3b34caa34496ed41585a 100644 (file)
@@ -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
 
index 757b86ab2f62b16d758664c109e4695eaebd4191..cab89fb42688536c0a766f9f4a04aa6aa6094b70 100644 (file)
@@ -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