chiark / gitweb /
units: teach m4 scripts in units/ about Debian's rc.local
[elogind.git] / units / getty@.service.m4
index 17c76f5b3154e6065b24ab493a7cab6cf1e9dddb..b5875ce491a696153280caceee622f78a1222694 100644 (file)
@@ -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
@@ -40,7 +44,9 @@ ConditionPathExists=/dev/tty0
 
 [Service]
 Environment=TERM=linux
-ExecStart=-/sbin/agetty %I 38400
+# the VT is cleared by TTYVTDisallocate
+ExecStart=-/sbin/agetty --noclear %I 38400
+Type=idle
 Restart=always
 RestartSec=0
 UtmpIdentifier=%I