]>
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 |
70fcff31 LP |
13 | |
14 | [Service] | |
739848d4 | 15 | Environment=HOME=/root |
1fd116f7 | 16 | WorkingDirectory=/root |
f057408c LP |
17 | ExecStartPre=-/bin/plymouth --hide-splash |
18 | ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" to activate default mode.' | |
ddad6809 | 19 | ExecStart=-/sbin/sulogin |
f057408c | 20 | StandardInput=tty-force |
525ee6f4 | 21 | Restart=always |
70fcff31 | 22 | RestartSec=0 |
1f48cf56 | 23 | KillMode=process-group |
31934667 | 24 | |
30609d9c | 25 | # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash |
31934667 | 26 | # terminates cleanly. |
30609d9c | 27 | KillSignal=SIGHUP |