X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fgetty%40.service.m4;h=aa853b8d6d17ce3932a54abff9553235323b523a;hp=fcf1de197fb94383e7b5b9cf8e2bbdf995f75037;hb=b532bdeae9b13fe93a54850f5e7f99c753bda6fa;hpb=3305d6806d428010b1cd2abd716aa1bb7f81311f diff --git a/units/getty@.service.m4 b/units/getty@.service.m4 index fcf1de197..aa853b8d6 100644 --- a/units/getty@.service.m4 +++ b/units/getty@.service.m4 @@ -7,24 +7,10 @@ [Unit] Description=Getty on %I -Documentation=man:agetty(8) +Documentation=man:agetty(8) man:systemd-getty-generator(8) +Documentation=http://0pointer.de/blog/projects/serial-console.html 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 @@ -34,15 +20,14 @@ After=rc-local.service Before=getty.target IgnoreOnIsolate=yes -# On systems without virtual consoles, don't start any getty. (Note +# On systems without virtual consoles, don't start any getty. Note # that serial gettys are covered by serial-getty@.service, not this -# unit +# unit. ConditionPathExists=/dev/tty0 [Service] -Environment=TERM=linux # the VT is cleared by TTYVTDisallocate -ExecStart=-/sbin/agetty --noclear %I 38400 +ExecStart=-/sbin/agetty --noclear %I $TERM Type=idle Restart=always RestartSec=0 @@ -53,14 +38,11 @@ TTYVHangup=yes TTYVTDisallocate=yes KillMode=process IgnoreSIGPIPE=no +SendSIGHUP=yes # Unset locale for the console getty since the console has problems # displaying some internationalized messages. Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION= -# Some login implementations ignore SIGTERM, so we send SIGHUP -# instead, to ensure that login terminates cleanly. -KillSignal=SIGHUP - [Install] -Alias=getty.target.wants/getty@tty1.service +WantedBy=getty.target