]> git.ipfire.org Git - thirdparty/dracut.git/blame - modules.d/98systemd/dracut-pre-trigger.service
add systemd module
[thirdparty/dracut.git] / modules.d / 98systemd / dracut-pre-trigger.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]
11Description=Dracut pre-trigger hook
12DefaultDependencies=no
13After=systemd-udev.service
14Before=systemd-udev-trigger.service
15
16[Service]
17Environment=HOME=/
18WorkingDirectory=/
19ExecStart=-/bin/dracut-pre-trigger
20Type=oneshot
21StandardInput=tty-force
22StandardOutput=inherit
23StandardError=inherit
24KillMode=process
25
26# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
27# terminates cleanly.
28KillSignal=SIGHUP