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
# This service will run the real kdump error handler code. Executing the
893e0b
# default action configured in kdump.conf
893e0b
893e0b
[Unit]
893e0b
Description=Kdump Error Handler
893e0b
DefaultDependencies=no
893e0b
After=systemd-vconsole-setup.service
893e0b
Wants=systemd-vconsole-setup.service
893e0b
AllowIsolate=yes
893e0b
893e0b
[Service]
893e0b
Environment=HOME=/
893e0b
Environment=DRACUT_SYSTEMD=1
893e0b
Environment=NEWROOT=/sysroot
893e0b
WorkingDirectory=/
893e0b
ExecStart=/bin/kdump-error-handler.sh
893e0b
ExecStopPost=-/usr/bin/systemctl --fail --no-block default
893e0b
Type=oneshot
893e0b
StandardInput=tty-force
893e0b
StandardOutput=inherit
893e0b
StandardError=inherit
893e0b
KillMode=process
893e0b
IgnoreSIGPIPE=no
893e0b
893e0b
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
893e0b
# terminates cleanly.
893e0b
KillSignal=SIGHUP