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