]>
Commit | Line | Data |
---|---|---|
0667db89 LP |
1 | # This file is part of systemd. |
2 | # | |
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. | |
7 | ||
8 | # See systemd.special(7) for details | |
9 | ||
10 | [Unit] | |
11 | Description=Rescue Shell | |
12 | DefaultDependencies=no | |
de47ca9b | 13 | Conflicts=shutdown.target |
9524600e | 14 | After=basic.target |
de47ca9b | 15 | Before=shutdown.target |
0667db89 LP |
16 | |
17 | [Service] | |
739848d4 | 18 | Environment=HOME=/root |
1fd116f7 | 19 | WorkingDirectory=/root |
be12dd0c | 20 | ExecStartPre=-/bin/plymouth quit |
273f54cd | 21 | ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D to activate default mode.' |
de47ca9b LP |
22 | m4_ifdef(`TARGET_FEDORA', |
23 | `EnvironmentFile=/etc/sysconfig/init | |
9423fd77 | 24 | ExecStart=-/bin/bash -c "exec ${SINGLE}"', |
1de4d79b AB |
25 | m4_ifdef(`TARGET_MANDRIVA', |
26 | `EnvironmentFile=/etc/sysconfig/init | |
27 | ExecStart=-/bin/bash -c "exec ${SINGLE}"', | |
54e4fdef CF |
28 | `ExecStart=-/sbin/sulogin' |
29 | m4_ifdef(`TARGET_MEEGO', | |
30 | `EnvironmentFile=/etc/sysconfig/init | |
31 | ExecStart=-/bin/bash -c "exec ${SINGLE}"',))) | |
7f62e377 | 32 | ExecStopPost=-/bin/systemctl --fail --no-block default |
0667db89 | 33 | StandardInput=tty-force |
cbe82694 MS |
34 | StandardOutput=inherit |
35 | StandardError=inherit | |
cd25cce9 | 36 | KillMode=process |
0667db89 | 37 | |
30609d9c | 38 | # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash |
0667db89 | 39 | # terminates cleanly. |
30609d9c | 40 | KillSignal=SIGHUP |