[kexec-tools/f18: 6/7] Enable kdump service after installation
Dave Young
yangrr at fedoraproject.org
Fri Nov 16 06:25:04 UTC 2012
commit 2c20a30420ced02229e474ba413dd30a6c25059f
Author: dyoung at redhat.com <dyoung at redhat.com>
Date: Mon Nov 12 16:51:02 2012 +0800
Enable kdump service after installation
Kdump systemd service should be enabled after installation like what
we do for old sysv init service.
systemctl enable will do daemon-reload automaticlly, so no need to
reload the daemon again. Please see manpage of systemctl about the detail.
Signed-off-by: Dave Young <dyoung at redhat.com>
Acked-by: Vivek Goyal <vgoyal at redhat.com>
kexec-tools.spec | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kexec-tools.spec b/kexec-tools.spec
index f7c0177..61ef43a 100644
--- a/kexec-tools.spec
+++ b/kexec-tools.spec
@@ -189,7 +189,7 @@ mv $RPM_BUILD_ROOT/etc/kdump-adv-conf/kdump_dracut_modules/* $RPM_BUILD_ROOT/%{d
%post
if [ $1 -eq 1 ] ; then
# Initial installation
- /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+ /bin/systemctl enable kdump.service >/dev/null 2>&1 || :
fi
touch /etc/kdump.conf
# This portion of the script is temporary. Its only here
More information about the scm-commits
mailing list