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@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
c616b97dfb
commit
2c20a30420
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user