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