chiark / gitweb /
units: set HOME=/root when running shells
[elogind.git] / units / fedora / single.service
index f4af539f850a82e26f91a6cbf1417e3f5e3ec9fd..6205b79ce3a2bd2dd501865b88632fd9e777e769 100644 (file)
@@ -15,14 +15,15 @@ After=sysinit.target
 Before=multi-user.target
 
 [Service]
+Environment=HOME=/root
 ExecStartPre=-/bin/plymouth --hide-splash
 ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" to activate default mode.'
-ExecStart=/bin/sh
+ExecStart=-/sbin/sulogin
 StandardInput=tty-force
 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