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