]> git.ipfire.org Git - thirdparty/dracut.git/blob - modules.d/98systemd/emergency.service
systemd: changes for new initrd services
[thirdparty/dracut.git] / modules.d / 98systemd / emergency.service
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]
11 Description=Emergency Shell
12 DefaultDependencies=no
13 After=systemd-vconsole-setup.service
14 Wants=systemd-vconsole-setup.service
15
16 [Service]
17 Environment=HOME=/
18 WorkingDirectory=/
19 ExecStart=/bin/dracut-emergency
20 ExecStopPost=-/usr/bin/systemctl --no-block isolate dracut.target
21 Type=oneshot
22 StandardInput=tty-force
23 StandardOutput=inherit
24 StandardError=inherit
25 KillMode=process
26 IgnoreSIGPIPE=no
27
28 # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
29 # terminates cleanly.
30 KillSignal=SIGHUP