2014-07-15 09:40:33 +02:00
|
|
|
Related to bnc#886599 and others. That is use the vhangup(8) tool
|
|
|
|
to explicit do a virtually hangup on the specified on the terminal
|
|
|
|
line to give e.g. the bash a few seconds to e.g. safe its history.
|
|
|
|
|
2015-02-18 13:10:33 +01:00
|
|
|
[crrodriguez@opensuse.org: Feb 2015
|
|
|
|
This a known kernel bug, no notification from the cgroup subsystem
|
|
|
|
arrives and the processes in the "scope" units have
|
|
|
|
to be SIGKILL'ed without delay in order not to hang shutdown
|
|
|
|
Status: fix not available as of Feb 16 2015
|
|
|
|
track progress: https://bugzilla.redhat.com/show_bug.cgi?id=1141137
|
|
|
|
]
|
|
|
|
|
2014-07-15 09:40:33 +02:00
|
|
|
---
|
|
|
|
units/getty@.service.m4 | 1 +
|
|
|
|
units/serial-getty@.service.m4 | 1 +
|
|
|
|
2 files changed, 2 insertions(+)
|
2015-02-13 10:43:21 +01:00
|
|
|
Index: systemd-218/units/getty@.service.m4
|
|
|
|
===================================================================
|
|
|
|
--- systemd-218.orig/units/getty@.service.m4
|
|
|
|
+++ systemd-218/units/getty@.service.m4
|
2014-07-15 09:40:33 +02:00
|
|
|
@@ -29,6 +29,7 @@ ConditionPathExists=/dev/tty0
|
|
|
|
[Service]
|
|
|
|
# the VT is cleared by TTYVTDisallocate
|
|
|
|
ExecStart=-/sbin/agetty --noclear %I $TERM
|
|
|
|
+ExecStopPost=-/sbin/vhangup /dev/%I
|
|
|
|
Type=idle
|
|
|
|
Restart=always
|
|
|
|
RestartSec=0
|
2015-02-13 10:43:21 +01:00
|
|
|
Index: systemd-218/units/serial-getty@.service.m4
|
|
|
|
===================================================================
|
|
|
|
--- systemd-218.orig/units/serial-getty@.service.m4
|
|
|
|
+++ systemd-218/units/serial-getty@.service.m4
|
2014-07-15 09:40:33 +02:00
|
|
|
@@ -24,6 +24,7 @@ IgnoreOnIsolate=yes
|
|
|
|
|
|
|
|
[Service]
|
2015-02-13 10:43:21 +01:00
|
|
|
ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM
|
2014-07-15 09:40:33 +02:00
|
|
|
+ExecStopPost=-/sbin/vhangup /dev/%I
|
|
|
|
Type=idle
|
|
|
|
Restart=always
|
2015-02-13 10:43:21 +01:00
|
|
|
UtmpIdentifier=%I
|