chiark / gitweb /
units: add generic sysctl/hwclock-save service
[elogind.git] / units / emergency.service
index a5a54bc9d23e4b4e452c8f8cec218b873ba50a55..dda7e168cb65ec447766b0e1a90bf549c00ddab3 100644 (file)
@@ -10,7 +10,6 @@
 [Unit]
 Description=Emergency Shell
 DefaultDependencies=no
-After=shutdown.target
 
 [Service]
 ExecStartPre=-/bin/plymouth --hide-splash
@@ -21,6 +20,6 @@ Restart=restart-always
 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.
-ExecStop=-/bin/kill -HUP $(MAINPID)
+KillSignal=SIGHUP