]>
Commit | Line | Data |
---|---|---|
70449379 LP |
1 | # This file is part of systemd. |
2 | # | |
70449379 | 3 | # systemd is free software; you can redistribute it and/or modify it |
5430f7f2 LP |
4 | # under the terms of the GNU Lesser General Public License as published by |
5 | # the Free Software Foundation; either version 2.1 of the License, or | |
70449379 | 6 | # (at your option) any later version. |
70449379 | 7 | |
09477267 | 8 | [Unit] |
70fcff31 | 9 | Description=Emergency Shell |
af65a091 | 10 | DefaultDependencies=no |
de47ca9b LP |
11 | Conflicts=shutdown.target |
12 | Before=shutdown.target | |
70fcff31 LP |
13 | |
14 | [Service] | |
739848d4 | 15 | Environment=HOME=/root |
1fd116f7 | 16 | WorkingDirectory=/root |
be12dd0c | 17 | ExecStartPre=-/bin/plymouth quit |
eb91400c | 18 | ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" or ^D to enter default mode.' |
ddad6809 | 19 | ExecStart=-/sbin/sulogin |
9cf25786 | 20 | ExecStopPost=@SYSTEMCTL@ --fail --no-block default |
f2b68789 | 21 | Type=idle |
f057408c | 22 | StandardInput=tty-force |
cbe82694 MS |
23 | StandardOutput=inherit |
24 | StandardError=inherit | |
cd25cce9 | 25 | KillMode=process |
353e12c2 | 26 | IgnoreSIGPIPE=no |
31934667 | 27 | |
30609d9c | 28 | # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash |
31934667 | 29 | # terminates cleanly. |
30609d9c | 30 | KillSignal=SIGHUP |