Blame dracut-kdump-error-handler.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 run the real kdump error handler code. Executing the
|
|
Petr Šabata |
f5bf49 |
# failure action configured in kdump.conf
|
|
Petr Šabata |
f5bf49 |
|
|
Petr Šabata |
f5bf49 |
[Unit]
|
|
Petr Šabata |
f5bf49 |
Description=Kdump Error Handler
|
|
Petr Šabata |
f5bf49 |
DefaultDependencies=no
|
|
Petr Šabata |
f5bf49 |
After=systemd-vconsole-setup.service
|
|
Petr Šabata |
f5bf49 |
Wants=systemd-vconsole-setup.service
|
|
Petr Šabata |
f5bf49 |
AllowIsolate=yes
|
|
Petr Šabata |
f5bf49 |
|
|
Petr Šabata |
f5bf49 |
[Service]
|
|
Petr Šabata |
f5bf49 |
Environment=HOME=/
|
|
Petr Šabata |
f5bf49 |
Environment=DRACUT_SYSTEMD=1
|
|
Petr Šabata |
f5bf49 |
Environment=NEWROOT=/sysroot
|
|
Petr Šabata |
f5bf49 |
WorkingDirectory=/
|
|
Petr Šabata |
f5bf49 |
ExecStart=/bin/kdump-error-handler.sh
|
|
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
|