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