chiark / gitweb /
units: always send HUP when dealing with shells/gettys/logins
[elogind.git] / units / emergency.service
index 7a1f81a468bb77eb602a33d1e4dc5978b2febd9d..dda7e168cb65ec447766b0e1a90bf549c00ddab3 100644 (file)
@@ -20,6 +20,6 @@ Restart=restart-always
 RestartSec=0
 KillMode=process-group
 
 RestartSec=0
 KillMode=process-group
 
-# Bash ignores SIGTERM, so we send SIGHUP first, to ensure that bash
+# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
 # terminates cleanly.
 # terminates cleanly.
-ExecStop=-/bin/kill -HUP ${MAINPID}
+KillSignal=SIGHUP