Blame dracut-kdump-capture.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 |
[Unit]
|
|
Petr Šabata |
f5bf49 |
Description=Kdump Vmcore Save Service
|
|
Petr Šabata |
f5bf49 |
After=initrd.target initrd-parse-etc.service sysroot.mount
|
|
Petr Šabata |
f5bf49 |
After=dracut-initqueue.service dracut-pre-mount.service dracut-mount.service dracut-pre-pivot.service
|
|
Petr Šabata |
f5bf49 |
Before=initrd-cleanup.service
|
|
Petr Šabata |
f5bf49 |
ConditionPathExists=/etc/initrd-release
|
|
Petr Šabata |
f5bf49 |
OnFailure=emergency.target
|
|
Petr Šabata |
f5bf49 |
OnFailureJobMode=isolate
|
|
Petr Šabata |
f5bf49 |
|
|
Petr Šabata |
f5bf49 |
[Service]
|
|
Petr Šabata |
f5bf49 |
Environment=DRACUT_SYSTEMD=1
|
|
Petr Šabata |
f5bf49 |
Environment=NEWROOT=/sysroot
|
|
Petr Šabata |
f5bf49 |
Type=oneshot
|
|
Petr Šabata |
f5bf49 |
ExecStart=/bin/kdump.sh
|
|
Petr Šabata |
f5bf49 |
StandardInput=null
|
|
Petr Šabata |
f5bf49 |
StandardOutput=syslog
|
|
Petr Šabata |
f5bf49 |
StandardError=syslog+console
|
|
Petr Šabata |
f5bf49 |
KillMode=process
|
|
Petr Šabata |
f5bf49 |
RemainAfterExit=yes
|
|
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
|