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