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