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