forked from pool/systemd
Marcus Meissner
bc83988d29
- Update to new upstream release 218 I really want networkd with a functioning machinectl --network-veth (broken in 13.2). OBS-URL: https://build.opensuse.org/request/show/280821 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=844
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
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.
|
|
|
|
---
|
|
units/getty@.service.m4 | 1 +
|
|
units/serial-getty@.service.m4 | 1 +
|
|
2 files changed, 2 insertions(+)
|
|
Index: systemd-218/units/getty@.service.m4
|
|
===================================================================
|
|
--- systemd-218.orig/units/getty@.service.m4
|
|
+++ systemd-218/units/getty@.service.m4
|
|
@@ -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
|
|
Index: systemd-218/units/serial-getty@.service.m4
|
|
===================================================================
|
|
--- systemd-218.orig/units/serial-getty@.service.m4
|
|
+++ systemd-218/units/serial-getty@.service.m4
|
|
@@ -24,6 +24,7 @@ IgnoreOnIsolate=yes
|
|
|
|
[Service]
|
|
ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM
|
|
+ExecStopPost=-/sbin/vhangup /dev/%I
|
|
Type=idle
|
|
Restart=always
|
|
UtmpIdentifier=%I
|