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=93a70cf4b0fe020a2fe7b078a865fb0a99e97385;hb=5b40d54851da5934a0c819b35d6d5338039ee923;hpb=c24eb49e6aecd6de2ad450083e826d4c9d9c75b6 diff --git a/units/fedora/single.service b/units/fedora/single.service index 93a70cf4b..550df1ef6 100644 --- a/units/fedora/single.service +++ b/units/fedora/single.service @@ -15,14 +15,16 @@ After=sysinit.target 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=/bin/sh +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 first, to ensure that bash +# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash # terminates cleanly. -ExecStop=-/bin/kill -HUP ${MAINPID} +KillSignal=SIGHUP