X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Femergency.service;h=cb28a783852a172bbe592a8ed7175b5c7fe669ed;hb=be12dd0cb89214b3b0dbffe70dd47d1db2c5d3c2;hp=8578654d88611b6e68da3393c58919dd39c5a80a;hpb=525ee6f4a1639bcb28198bf9e32b93ca2bfd268b;p=elogind.git diff --git a/units/emergency.service b/units/emergency.service index 8578654d8..cb28a7838 100644 --- a/units/emergency.service +++ b/units/emergency.service @@ -10,16 +10,17 @@ [Unit] Description=Emergency Shell DefaultDependencies=no +Conflicts=shutdown.target +Before=shutdown.target [Service] Environment=HOME=/root WorkingDirectory=/root -ExecStartPre=-/bin/plymouth --hide-splash -ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" to activate default mode.' +ExecStartPre=-/bin/plymouth quit +ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" or ^D to activate default mode.' ExecStart=-/sbin/sulogin +ExecStopPost=/bin/systemctl --fail default StandardInput=tty-force -Restart=always -RestartSec=0 KillMode=process-group # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash