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