chiark / gitweb /
units/serial-getty@.service: add [Install] section
[elogind.git] / units / serial-getty@.service.m4
index 60d7737b74bd03fc6ebb30f297562b62b7469af7..e94cdb4aa4fdc24ea6fdc423e5c5fbc7f13dbca3 100644 (file)
@@ -22,7 +22,7 @@ Before=getty.target
 IgnoreOnIsolate=yes
 
 [Service]
-ExecStart=-/sbin/agetty -s %I 115200,38400,9600 vt102
+ExecStart=-/sbin/agetty --keep-baud %I 115200,38400,9600 $TERM
 Type=idle
 Restart=always
 RestartSec=0
@@ -32,7 +32,7 @@ TTYReset=yes
 TTYVHangup=yes
 KillMode=process
 IgnoreSIGPIPE=no
+SendSIGHUP=yes
 
-# Some login implementations ignore SIGTERM, so we send SIGHUP
-# instead, to ensure that login terminates cleanly.
-KillSignal=SIGHUP
+[Install]
+WantedBy=getty.target