X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Fgetty%40.service.m4;h=810c23fc12258ff91bf1a26c7766c97b5bfc14d5;hb=73c0495f6830ca99c0c6eb15e83c3c7d44096d19;hp=17c76f5b3154e6065b24ab493a7cab6cf1e9dddb;hpb=8ef58b3efcbafe062e0c2c2531839c1e583b81fd;p=elogind.git diff --git a/units/getty@.service.m4 b/units/getty@.service.m4 index 17c76f5b3..810c23fc1 100644 --- a/units/getty@.service.m4 +++ b/units/getty@.service.m4 @@ -7,10 +7,14 @@ [Unit] Description=Getty on %I +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_DEBIAN', +After=rc.local.service +)m4_dnl m4_ifdef(`TARGET_ARCH', After=rc-local.service )m4_dnl @@ -39,8 +43,9 @@ IgnoreOnIsolate=yes ConditionPathExists=/dev/tty0 [Service] -Environment=TERM=linux -ExecStart=-/sbin/agetty %I 38400 +# the VT is cleared by TTYVTDisallocate +ExecStart=-/sbin/agetty --noclear %I 38400 linux +Type=idle Restart=always RestartSec=0 UtmpIdentifier=%I