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