[kexec-tools/f17] udev rules fix

Dave Young yangrr at fedoraproject.org
Fri Aug 10 02:21:24 UTC 2012


commit 203051c18ceab57d32e968a7c3ff71da2bc4fc34
Author: Dave Young <dyoung at redhat.com>
Date:   Thu May 24 16:00:28 2012 +0800

    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 <dyoung at redhat.com>
    Acked-by: Vivek Goyal <vgoyal at redhat.com>

 98-kexec.rules |    8 ++++----
 1 files 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"


More information about the scm-commits mailing list