2021-02-21 11:53:37 +00:00
|
|
|
SUBSYSTEM=="cpu", ACTION=="online", GOTO="kdump_reload_cpu"
|
|
|
|
SUBSYSTEM=="memory", ACTION=="online", GOTO="kdump_reload_mem"
|
|
|
|
SUBSYSTEM=="memory", ACTION=="offline", GOTO="kdump_reload_mem"
|
2019-04-30 03:55:10 +00:00
|
|
|
|
|
|
|
GOTO="kdump_reload_end"
|
|
|
|
|
|
|
|
# If kdump is not loaded, calling kdump-udev-throttle will end up
|
|
|
|
# doing nothing, but systemd-run will always generate extra logs for
|
|
|
|
# each call, so trigger the kdump-udev-throttler only if kdump
|
|
|
|
# service is active to avoid unnecessary logs
|
2021-02-21 11:53:37 +00:00
|
|
|
|
|
|
|
LABEL="kdump_reload_mem"
|
|
|
|
|
2019-04-30 03:55:10 +00:00
|
|
|
RUN+="/bin/sh -c '/usr/bin/systemctl is-active kdump.service || exit 0; /usr/bin/systemd-run --quiet --no-block /usr/lib/udev/kdump-udev-throttler'"
|
|
|
|
|
2021-02-21 11:53:37 +00:00
|
|
|
GOTO="kdump_reload_end"
|
|
|
|
|
|
|
|
LABEL="kdump_reload_cpu"
|
|
|
|
|
2023-08-17 11:08:35 +00:00
|
|
|
RUN+="/bin/sh -c '/usr/bin/systemctl is-active kdump.service || exit 0; ! test -f /sys/kernel/fadump/enabled || cat /sys/kernel/fadump/enabled | grep 0 || exit 0; /usr/bin/systemd-run --quiet --no-block /usr/lib/udev/kdump-udev-throttler'"
|
2021-02-21 11:53:37 +00:00
|
|
|
|
2019-04-30 03:55:10 +00:00
|
|
|
LABEL="kdump_reload_end"
|