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