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