X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fconsole-getty.service.m4.in;h=8ac51a471be3569938a6854c3109c056258de22d;hp=9473d61dfe122763e220933098309f96524a4a92;hb=9a8c867fecec55998b7a78470aebdede2db0673e;hpb=337eebb936be1da1215535e866965ce54c82d755 diff --git a/units/console-getty.service.m4.in b/units/console-getty.service.m4.in index 9473d61df..8ac51a471 100644 --- a/units/console-getty.service.m4.in +++ b/units/console-getty.service.m4.in @@ -7,29 +7,16 @@ [Unit] Description=Console Getty +Documentation=man:agetty(8) After=systemd-user-sessions.service plymouth-quit-wait.service -m4_ifdef(`TARGET_FEDORA', -After=rc-local.service -)m4_dnl -m4_ifdef(`TARGET_ARCH', -After=rc-local.service -)m4_dnl -m4_ifdef(`TARGET_FRUGALWARE', -After=local.service -)m4_dnl -m4_ifdef(`TARGET_ALTLINUX', -After=rc-local.service -)m4_dnl -m4_ifdef(`TARGET_MANDRIVA', -After=rc-local.service -)m4_dnl -m4_ifdef(`TARGET_MAGEIA', +m4_ifdef(`HAVE_SYSV_COMPAT', After=rc-local.service )m4_dnl Before=getty.target [Service] -ExecStart=-/sbin/agetty --noclear -s console 115200,38400,9600 +ExecStart=-/sbin/agetty --noclear --keep-baud console 115200,38400,9600 $TERM +Type=idle Restart=always RestartSec=0 UtmpIdentifier=cons @@ -38,10 +25,7 @@ TTYReset=yes TTYVHangup=yes KillMode=process IgnoreSIGPIPE=no - -# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash -# terminates cleanly. -KillSignal=SIGHUP +SendSIGHUP=yes [Install] WantedBy=getty.target