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