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