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