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