[Unit]
Description=Emergency Shell
DefaultDependencies=no
-After=shutdown.target
[Service]
ExecStartPre=-/bin/plymouth --hide-splash
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