2020-10-15 12:45:57 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Crash recovery kernel arming
|
|
|
|
After=network.target network-online.target remote-fs.target basic.target
|
|
|
|
DefaultDependencies=no
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2025-01-09 03:56:37 +00:00
|
|
|
ExecCondition=/bin/sh -c 'grep -q -e "crashkernel" -e "fadump" /proc/cmdline'
|
2020-10-15 12:45:57 +00:00
|
|
|
ExecStart=/usr/bin/kdumpctl start
|
|
|
|
ExecStop=/usr/bin/kdumpctl stop
|
|
|
|
ExecReload=/usr/bin/kdumpctl reload
|
|
|
|
RemainAfterExit=yes
|
|
|
|
StartLimitInterval=0
|
2023-05-31 07:10:30 +00:00
|
|
|
PrivateTmp=yes
|
2020-10-15 12:45:57 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|