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 be placed in kdump initramfs and replace both the systemd
b9e861
# emergency service and dracut emergency shell. IOW, any emergency will be
b9e861
# kick this service and in turn isolating to kdump error handler.
b9e861
b9e861
[Unit]
b9e861
Description=Kdump Emergency
b9e861
DefaultDependencies=no
b9e861
IgnoreOnIsolate=yes
b9e861
b9e861
[Service]
b9e861
ExecStart=/usr/bin/systemctl --no-block isolate kdump-error-handler.service
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