summaryrefslogtreecommitdiff
path: root/units/fedora/single.service
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-06 02:43:06 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-06 02:44:15 +0200
commit273f54cdc2ce9eec741157c60fa240a23d79bb72 (patch)
tree1e9fc4565088fcad888b34d7ebd933ff8abc9d16 /units/fedora/single.service
parent71fad6751434f06485a744d41be2d807303c1184 (diff)
unit: continue boot when exiting emergency/resuce shell
Diffstat (limited to 'units/fedora/single.service')
-rw-r--r--units/fedora/single.service8
1 files changed, 4 insertions, 4 deletions
diff --git a/units/fedora/single.service b/units/fedora/single.service
index a519ae3d63..550df1ef60 100644
--- a/units/fedora/single.service
+++ b/units/fedora/single.service
@@ -16,13 +16,13 @@ Before=multi-user.target
[Service]
Environment=HOME=/root
+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