chiark / gitweb /
exec: introduce global defaults for the standard output of services
[elogind.git] / units / serial-getty@.service.m4
index 9a70db0f21cdf119e00a87551379c425c7b50c28..c7a11b1fa0c987e4d81df2e81a4013e6a6448da0 100644 (file)
@@ -7,8 +7,8 @@
 
 [Unit]
 Description=Serial Getty on %I
-Requires=dev-%i.device
-After=dev-%i.device
+BindTo=dev-%i.device
+After=dev-%i.device systemd-user-sessions.service
 m4_ifdef(`TARGET_FEDORA',
 After=rc-local.service
 )m4_dnl
@@ -22,10 +22,7 @@ After=rc-local.service
 Before=getty.target
 
 [Service]
-Environment=TERM=vt100-nav
-m4_ifdef(`TARGET_FEDORA',
-ExecStartPre=-/sbin/securetty %I
-)m4_dnl
+Environment=TERM=vt100
 ExecStart=-/sbin/agetty -s %I 115200,38400,9600
 Restart=always
 RestartSec=0