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