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