diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-05-18 01:07:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-05-18 01:07:36 +0200 |
commit | 6ea832a20700f5282c08c70f38422c6ab290a0b5 (patch) | |
tree | bcd9a7705c87f3828adf70938ec59cdcfe368e72 /units/getty@.service.m4 | |
parent | 9131f660eedb29d18a29e6efff49c485e683c56c (diff) |
exec: hangup/reset/deallocate VTs in gettys
Explicitly disconnect all clients from a VT when a getty starts/finishes
(requires TIOCVHANGUP, available in 2.6.29).
Explicitly deallocate getty VTs in order to flush scrollback buffer.
Explicitly reset terminals to a defined state before spawning getty.
Diffstat (limited to 'units/getty@.service.m4')
-rw-r--r-- | units/getty@.service.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/units/getty@.service.m4 b/units/getty@.service.m4 index a9733a60d6..bfceb39fde 100644 --- a/units/getty@.service.m4 +++ b/units/getty@.service.m4 @@ -36,6 +36,10 @@ ExecStart=-/sbin/agetty %I 38400 Restart=always RestartSec=0 UtmpIdentifier=%I +TTYPath=/dev/%I +TTYReset=yes +TTYVHangup=yes +TTYVTDisallocate=yes KillMode=process # Unset locale for the console getty since the console has problems |