X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Ffedora%2Fsingle.service;h=f494237209be51aef17641bd62df6348698f5338;hb=5f36328f55dfc7942b7db74271206d0c60c48799;hp=6afc8b358d93e0e8ea99079210ce43751bf4841d;hpb=1fd116f7484fe85c30c6619154c2506a52da80ed;p=elogind.git diff --git a/units/fedora/single.service b/units/fedora/single.service index 6afc8b358..f49423720 100644 --- a/units/fedora/single.service +++ b/units/fedora/single.service @@ -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=restart-always -RestartSec=0 KillMode=process-group # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash