X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Femergency.service;h=4a1e31ac7f002398acabc5cb9d518cf85af487e2;hb=dacdf153675637258d155faa592b247837b05e42;hp=924723fefede74b2fe1a98653aa5cf781b4477d7;hpb=1f48cf56cb2693b84fdc76dc8df0b048ed50ef43;p=elogind.git diff --git a/units/emergency.service b/units/emergency.service index 924723fef..4a1e31ac7 100644 --- a/units/emergency.service +++ b/units/emergency.service @@ -9,10 +9,17 @@ [Unit] Description=Emergency Shell +DefaultDependencies=no [Service] -ExecStart=/bin/sh -StandardInput=tty +ExecStartPre=-/bin/plymouth --hide-splash +ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" to activate default mode.' +ExecStart=-/sbin/sulogin +StandardInput=tty-force Restart=restart-always RestartSec=0 KillMode=process-group + +# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash +# terminates cleanly. +KillSignal=SIGHUP