893e0b
#  This file is part of systemd.
893e0b
#
893e0b
#  systemd is free software; you can redistribute it and/or modify it
893e0b
#  under the terms of the GNU Lesser General Public License as published by
893e0b
#  the Free Software Foundation; either version 2.1 of the License, or
893e0b
#  (at your option) any later version.
893e0b
893e0b
# This service will be placed in kdump initramfs and replace both the systemd
893e0b
# emergency service and dracut emergency shell. IOW, any emergency will be
893e0b
# kick this service and in turn isolating to kdump error handler.
893e0b
893e0b
[Unit]
893e0b
Description=Kdump Emergency
893e0b
DefaultDependencies=no
893e0b
IgnoreOnIsolate=yes
893e0b
893e0b
[Service]
893e0b
ExecStart=/usr/bin/systemctl --no-block isolate kdump-error-handler.service
893e0b
Type=oneshot
893e0b
StandardInput=tty-force
893e0b
StandardOutput=inherit
893e0b
StandardError=inherit
893e0b
KillMode=process
893e0b
IgnoreSIGPIPE=no
893e0b
893e0b
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
893e0b
# terminates cleanly.
893e0b
KillSignal=SIGHUP