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