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