systemd-serialgetty: sync with upstream
authorKoen Kooi <koen@dominion.thruhere.net>
Thu, 22 Mar 2012 17:32:32 +0000 (18:32 +0100)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:19:50 +0000 (08:19 -0800)
(From meta-openembedded rev: 6b22bd198a87b5f113971d8fcd0e7211cd143c7d)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-core/systemd/systemd-serialgetty.bb
meta-openembedded/meta-oe/recipes-core/systemd/systemd-serialgetty/serial-getty@.service

index 5dd9e82..c310672 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Systemd serial config"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=751419260aa954499f7abaabaa882bbe"
 
-PR = "r2"
+PR = "r3"
 
 SERIAL_CONSOLE ?= "115200 ttyS0"
 
index daf0dac..8eeaab6 100644 (file)
@@ -17,11 +17,15 @@ Before=getty.target
 
 [Service]
 Environment=TERM=vt100
-ExecStart=-/sbin/getty @BAUDRATE@ %I
+ExecStart=-/sbin/agetty -s %I @BAUDRATE@
 Restart=always
 RestartSec=0
 UtmpIdentifier=%I
+TTYPath=/dev/%I
+TTYReset=yes
+TTYVHangup=yes
 KillMode=process
+IgnoreSIGPIPE=no
 
 # Some login implementations ignore SIGTERM, so we send SIGHUP
 # instead, to ensure that login terminates cleanly.