fixing bz 202598
This commit is contained in:
parent
6256013d0a
commit
34515c21d0
17
kdump.init
17
kdump.init
@ -58,12 +58,12 @@ function check_config()
|
|||||||
|
|
||||||
if [ ! -f $kdump_kernel ]; then
|
if [ ! -f $kdump_kernel ]; then
|
||||||
echo -n "No kdump kernel image found."; warning; echo
|
echo -n "No kdump kernel image found."; warning; echo
|
||||||
echo -n "Tried to locate ${kdump_kernel}"
|
echo "Tried to locate ${kdump_kernel}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f $kdump_initrd ]; then
|
if [ ! -f $kdump_initrd ]; then
|
||||||
echo "No kdump initial ramdisk found."
|
echo -n "No kdump initial ramdisk found."; warning; echo
|
||||||
echo "Tried to locate ${kdump_initrd}"
|
echo "Tried to locate ${kdump_initrd}"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@ -109,6 +109,11 @@ function load_kdump()
|
|||||||
$KEXEC $KEXEC_ARGS $standard_kexec_args \
|
$KEXEC $KEXEC_ARGS $standard_kexec_args \
|
||||||
--command-line="$KDUMP_COMMANDLINE" \
|
--command-line="$KDUMP_COMMANDLINE" \
|
||||||
--initrd=$kdump_initrd $kdump_kernel
|
--initrd=$kdump_initrd $kdump_kernel
|
||||||
|
|
||||||
|
if [ $? == 0 ]; then
|
||||||
|
touch /var/run/kdump.status
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
@ -124,12 +129,18 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
$KEXEC -p -u
|
$KEXEC -p -u
|
||||||
|
rm -f /var/run/kdump.status
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
echo "not implemented"
|
if [ -a /var/run/kdump.status ]; then
|
||||||
|
echo "Kdump is operational"
|
||||||
|
else
|
||||||
|
echo "Kdump is not operational"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
$KEXEC -p -u
|
$KEXEC -p -u
|
||||||
|
rm -f /var/run/kdump.status
|
||||||
check_config
|
check_config
|
||||||
load_kdump
|
load_kdump
|
||||||
;;
|
;;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: kexec-tools
|
Name: kexec-tools
|
||||||
Version: 1.101
|
Version: 1.101
|
||||||
Release: 43%{dist}
|
Release: 44%{dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Summary: The kexec/kdump userspace component.
|
Summary: The kexec/kdump userspace component.
|
||||||
@ -143,6 +143,9 @@ exit 0
|
|||||||
%doc TODO
|
%doc TODO
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 15 2006 Neil Horman <nhorman@redhat.com> - 1.101-44%{dist}
|
||||||
|
- updated init script to implement status function/scrub err messages
|
||||||
|
|
||||||
* Wed Aug 09 2006 Jarod Wilson <jwilson@redhat.com> - 1.101-43%{dist}
|
* Wed Aug 09 2006 Jarod Wilson <jwilson@redhat.com> - 1.101-43%{dist}
|
||||||
- Misc spec cleanups and macro-ifications
|
- Misc spec cleanups and macro-ifications
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user