5cf148
# This service will run the real kdump error handler code. Executing the
5cf148
# failure action configured in kdump.conf
5cf148
5cf148
[Unit]
5cf148
Description=Kdump Error Handler
5cf148
DefaultDependencies=no
5cf148
After=systemd-vconsole-setup.service
5cf148
Wants=systemd-vconsole-setup.service
5cf148
5cf148
[Service]
5cf148
Environment=HOME=/
5cf148
Environment=DRACUT_SYSTEMD=1
5cf148
Environment=NEWROOT=/sysroot
5cf148
WorkingDirectory=/
5cf148
ExecStart=/bin/kdump.sh --error-handler
5cf148
ExecStopPost=-/bin/rm -f -- /.console_lock
5cf148
Type=oneshot
5cf148
StandardInput=tty-force
5cf148
StandardOutput=inherit
5cf148
StandardError=inherit
5cf148
KillMode=process
5cf148
IgnoreSIGPIPE=no
5cf148
TasksMax=infinity
5cf148
5cf148
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
5cf148
# terminates cleanly.
5cf148
KillSignal=SIGHUP