Add "ExecReload=/usr/bin/kdumpctl reload", after this we can use
something like systemctl "reload" or "reload-or-try-restart" in
"udev/rules.d/98-kexec.rules".
Here is some time data to show how time-consuming the orignal one is:
1)/bin/systemctl try-restart kdump.service:
15:07:56 localhost systemd: Stopping Crash recovery kernel arming...
15:07:56 localhost kdumpctl: kexec: unloaded kdump kernel
15:07:56 localhost kdumpctl: Stopping kdump: [OK]
15:07:56 localhost systemd: Starting Crash recovery kernel arming...
15:08:02 localhost kdumpctl: kexec: loaded kdump kernel
15:08:02 localhost kdumpctl: Starting kdump: [OK]
15:08:02 localhost systemd: Started Crash recovery kernel arming.
Here is some time data to show how effecient with these patches applied:
2)/bin/systemctl reload-or-try-restart kdump.service:
15:09:24 localhost kdumpctl: kexec: loaded kdump kernel
15:09:24 localhost systemd: Reloaded Crash recovery kernel arming.
Signed-off-by: Xunlei Pang <xlpang(a)redhat.com>
---
kdump.service | 1 +
1 file changed, 1 insertion(+)
diff --git a/kdump.service b/kdump.service
index 5144597..f888dd6 100644
--- a/kdump.service
+++ b/kdump.service
@@ -7,6 +7,7 @@ DefaultDependencies=no
Type=oneshot
ExecStart=/usr/bin/kdumpctl start
ExecStop=/usr/bin/kdumpctl stop
+ExecReload=/usr/bin/kdumpctl reload
RemainAfterExit=yes
StartLimitInterval=0
--
1.8.3.1