chiark / gitweb /
units: now that we don't set TERM anymore by default, make sure to pass it to our...
[elogind.git] / units / fedora / single.service
index a519ae3d6304d9a87c6ea9f0f270188988f064b1..f494237209be51aef17641bd62df6348698f5338 100644 (file)
@@ -16,13 +16,14 @@ Before=multi-user.target
 
 [Service]
 Environment=HOME=/root
+Environment=TERM=vt100-nav
+EnvironmentFile=/etc/sysconfig/init
 WorkingDirectory=/root
 ExecStartPre=-/bin/plymouth --hide-splash
-ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" to activate default mode.'
-ExecStart=-/sbin/sulogin
+ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D to activate default mode.'
+ExecStart=-/bin/bash -c "exec $SINGLE"
+ExecStopPost=/bin/systemctl default
 StandardInput=tty-force
-Restart=always
-RestartSec=0
 KillMode=process-group
 
 # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash