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