de80c6
#  This file is part of systemd.
de80c6
#
de80c6
#  systemd is free software; you can redistribute it and/or modify it
de80c6
#  under the terms of the GNU Lesser General Public License as published by
de80c6
#  the Free Software Foundation; either version 2.1 of the License, or
de80c6
#  (at your option) any later version.
de80c6
de80c6
[Unit]
de80c6
Description=Kdump Vmcore Save Service
de80c6
After=initrd.target initrd-parse-etc.service sysroot.mount
de80c6
After=dracut-initqueue.service dracut-pre-mount.service dracut-mount.service dracut-pre-pivot.service
de80c6
Before=initrd-cleanup.service
de80c6
ConditionPathExists=/etc/initrd-release
de80c6
OnFailure=emergency.target
de80c6
OnFailureIsolate=yes
de80c6
de80c6
[Service]
de80c6
Environment=DRACUT_SYSTEMD=1
de80c6
Environment=NEWROOT=/sysroot
de80c6
Type=oneshot
de80c6
ExecStart=/bin/kdump.sh
de80c6
StandardInput=null
de80c6
StandardOutput=syslog
de80c6
StandardError=syslog+console
de80c6
KillMode=process
de80c6
RemainAfterExit=yes
de80c6
de80c6
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
de80c6
# terminates cleanly.
de80c6
KillSignal=SIGHUP