cf4a81
#  This file is part of systemd.
cf4a81
#
cf4a81
#  systemd is free software; you can redistribute it and/or modify it
cf4a81
#  under the terms of the GNU Lesser General Public License as published by
cf4a81
#  the Free Software Foundation; either version 2.1 of the License, or
cf4a81
#  (at your option) any later version.
cf4a81
cf4a81
# This service will run the real kdump error handler code. Executing the
cf4a81
# default action configured in kdump.conf
cf4a81
cf4a81
[Unit]
cf4a81
Description=Kdump Error Handler
cf4a81
DefaultDependencies=no
cf4a81
After=systemd-vconsole-setup.service
cf4a81
Wants=systemd-vconsole-setup.service
cf4a81
AllowIsolate=yes
cf4a81
cf4a81
[Service]
cf4a81
Environment=HOME=/
cf4a81
Environment=DRACUT_SYSTEMD=1
cf4a81
Environment=NEWROOT=/sysroot
cf4a81
WorkingDirectory=/
cf4a81
ExecStart=/bin/kdump-error-handler.sh
cf4a81
ExecStopPost=-/usr/bin/systemctl --fail --no-block default
cf4a81
Type=oneshot
cf4a81
StandardInput=tty-force
cf4a81
StandardOutput=inherit
cf4a81
StandardError=inherit
cf4a81
KillMode=process
cf4a81
IgnoreSIGPIPE=no
cf4a81
cf4a81
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
cf4a81
# terminates cleanly.
cf4a81
KillSignal=SIGHUP