X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Femergency.service;h=a97ec5e389b4000387030bd746ec0022f8de2ae2;hb=ac1234459056864aeb04053fdfe9b0001fc32590;hp=5910ec9b9108bedc5553dc9fe9397ece8d686c66;hpb=273f54cdc2ce9eec741157c60fa240a23d79bb72;p=elogind.git diff --git a/units/emergency.service b/units/emergency.service index 5910ec9b9..a97ec5e38 100644 --- a/units/emergency.service +++ b/units/emergency.service @@ -10,16 +10,18 @@ [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/plymouth quit ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" or ^D to activate default mode.' ExecStart=-/sbin/sulogin -ExecStopPost=/bin/systemctl default +ExecStopPost=/bin/systemctl --fail default StandardInput=tty-force -KillMode=process-group +KillMode=process # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash # terminates cleanly.