diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-12 23:49:20 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-12 23:49:20 +0200 |
commit | f057408c9c3b54b6eeb96cd9f0a1333f30610614 (patch) | |
tree | 3e3b4ba0a2718333350891c967b8096160514893 /units/emergency.service | |
parent | 2edd4434e5bc6e5c7948df742d82f4bcd6c415f3 (diff) |
units: introduce emergency.target
Diffstat (limited to 'units/emergency.service')
-rw-r--r-- | units/emergency.service | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/units/emergency.service b/units/emergency.service index bcedebfa08..a5a54bc9d2 100644 --- a/units/emergency.service +++ b/units/emergency.service @@ -10,16 +10,17 @@ [Unit] Description=Emergency Shell DefaultDependencies=no -Requires=shutdown.target umount.target -After=shutdown.target umount.target +After=shutdown.target [Service] +ExecStartPre=-/bin/plymouth --hide-splash +ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" to activate default mode.' ExecStart=/bin/sh -StandardInput=tty +StandardInput=tty-force Restart=restart-always RestartSec=0 KillMode=process-group # Bash ignores SIGTERM, so we send SIGHUP first, to ensure that bash # terminates cleanly. -ExecStop=/bin/kill -HUP $(MAINPID) +ExecStop=-/bin/kill -HUP $(MAINPID) |