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