From d123cc3f2bdfaf289e6343cdc18f2c8e091521ff Mon Sep 17 00:00:00 2001 From: Dave Young Date: Thu, 24 May 2012 16:00:28 +0800 Subject: [PATCH] udev rules fix Resolves: bz808817 use systemctl try-restart kdump.service instead of old /etc/init.d/kdump restart systemctl try-restart will restart kdump service only if the kdump service is runing. Original behavior is wrong when user does not chkconfig on the service. Tested the cpu online/offline events. Signed-off-by: Dave Young Acked-by: Vivek Goyal --- 98-kexec.rules | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/98-kexec.rules b/98-kexec.rules index 8b47671..8c742dd 100644 --- a/98-kexec.rules +++ b/98-kexec.rules @@ -1,4 +1,4 @@ -SUBSYSTEM=="cpu", ACTION=="online", PROGRAM="/etc/init.d/kdump restart" -SUBSYSTEM=="cpu", ACTION=="offline", PROGRAM="/etc/init.d/kdump restart" -SUBSYSTEM=="memory", ACTION=="add", PROGRAM="/etc/init.d/kdump restart" -SUBSYSTEM=="memory", ACTION=="remove", PROGRAM="/etc/init.d/kdump restart" +SUBSYSTEM=="cpu", ACTION=="online", PROGRAM="/bin/systemctl try-restart kdump.service" +SUBSYSTEM=="cpu", ACTION=="offline", PROGRAM="/bin/systemctl try-restart kdump.service" +SUBSYSTEM=="memory", ACTION=="add", PROGRAM="/bin/systemctl try-restart kdump.service" +SUBSYSTEM=="memory", ACTION=="remove", PROGRAM="/bin/systemctl try-restart kdump.service"