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