]>
Commit | Line | Data |
---|---|---|
2c431e8e HH |
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 Lesser General Public License as published by | |
5 | # the Free Software Foundation; either version 2.1 of the License, or | |
6 | # (at your option) any later version. | |
7 | ||
8 | # See systemd.special(7) for details | |
9 | ||
10 | [Unit] | |
dbfaae0e | 11 | Description=Dracut Emergency Shell |
2c431e8e | 12 | DefaultDependencies=no |
b347edfa HH |
13 | After=systemd-vconsole-setup.service |
14 | Wants=systemd-vconsole-setup.service | |
dbfaae0e | 15 | Conflicts=emergency.service emergency.target |
2c431e8e HH |
16 | |
17 | [Service] | |
18 | Environment=HOME=/ | |
19 | WorkingDirectory=/ | |
dbfaae0e | 20 | ExecStart=/bin/dracut-emergency |
b47e0237 | 21 | ExecStopPost=-/bin/rm -f /.console_lock |
a6c718ce | 22 | Type=oneshot |
b47e0237 HH |
23 | StandardInput=tty-force |
24 | StandardOutput=inherit | |
2c431e8e HH |
25 | StandardError=inherit |
26 | KillMode=process | |
27 | IgnoreSIGPIPE=no | |
28 | ||
29 | # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash | |
30 | # terminates cleanly. | |
31 | KillSignal=SIGHUP |