X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fgetty%40.service.m4;h=f32ca99ea94558d68703440b37790588c1bef8c4;hp=762fbfe3830d3e0c11ac336b9d973f57a721b017;hb=7c1b8f043ed3d23663549dd6084c5a4de51b8e28;hpb=5430f7f2bc7330f3088b894166bf3524a067e3d8 diff --git a/units/getty@.service.m4 b/units/getty@.service.m4 index 762fbfe38..f32ca99ea 100644 --- a/units/getty@.service.m4 +++ b/units/getty@.service.m4 @@ -7,24 +7,10 @@ [Unit] Description=Getty on %I -BindTo=dev-%i.device -After=dev-%i.device 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', +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(`HAVE_SYSV_COMPAT', After=rc-local.service )m4_dnl @@ -34,9 +20,15 @@ After=rc-local.service Before=getty.target IgnoreOnIsolate=yes +# On systems without virtual consoles, don't start any getty. (Note +# that serial gettys are covered by serial-getty@.service, not this +# unit +ConditionPathExists=/dev/tty0 + [Service] -Environment=TERM=linux -ExecStart=-/sbin/agetty %I 38400 +# the VT is cleared by TTYVTDisallocate +ExecStart=-/sbin/agetty --noclear %I +Type=idle Restart=always RestartSec=0 UtmpIdentifier=%I