- fix subsys locking in the initscript
This commit is contained in:
parent
84de5732d3
commit
d47bcd19d1
@ -67,7 +67,7 @@ start() {
|
|||||||
$PSENSORS -s
|
$PSENSORS -s
|
||||||
|
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
if [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sensors ; then
|
if [ $RETVAL -eq 0 ] && touch /var/lock/subsys/lm_sensors ; then
|
||||||
echo_success
|
echo_success
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
@ -88,7 +88,7 @@ stop() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
if [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sensors ; then
|
if [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/lm_sensors ; then
|
||||||
echo_success
|
echo_success
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
@ -109,7 +109,7 @@ restart() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
condrestart() {
|
condrestart() {
|
||||||
[ -e /var/lock/subsys/sensors ] && restart || :
|
[ -e /var/lock/subsys/lm_sensors ] && restart || :
|
||||||
}
|
}
|
||||||
|
|
||||||
# See how we were called.
|
# See how we were called.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: lm_sensors
|
Name: lm_sensors
|
||||||
Version: 2.9.1
|
Version: 2.9.1
|
||||||
Release: 5.1
|
Release: 6
|
||||||
URL: http://secure.netroedge.com/~lm78/
|
URL: http://secure.netroedge.com/~lm78/
|
||||||
Source: http://secure.netroedge.com/~lm78/archive/lm_sensors-%{version}.tar.gz
|
Source: http://secure.netroedge.com/~lm78/archive/lm_sensors-%{version}.tar.gz
|
||||||
Source1: lm_sensors.sysconfig
|
Source1: lm_sensors.sysconfig
|
||||||
@ -72,6 +72,11 @@ install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_initrddir}/lm_sensors
|
|||||||
%clean
|
%clean
|
||||||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%pre
|
||||||
|
if [ -f /var/lock/subsys/sensors ]; then
|
||||||
|
mv -f /var/lock/subsys/sensors /var/lock/subsys/lm_sensors
|
||||||
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
/sbin/chkconfig --add lm_sensors
|
/sbin/chkconfig --add lm_sensors
|
||||||
@ -102,7 +107,10 @@ fi
|
|||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
|
* Mon Jan 16 2006 Peter Jones <pjones@redhat.com> 2.9.1-6
|
||||||
|
- fix initscript subsys locking
|
||||||
|
|
||||||
|
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> 2.9.1-5.1
|
||||||
- rebuilt for new gcj
|
- rebuilt for new gcj
|
||||||
|
|
||||||
* Tue Nov 08 2005 Phil Knirsch <pknirsch@redhat.com> 2.9.1-5
|
* Tue Nov 08 2005 Phil Knirsch <pknirsch@redhat.com> 2.9.1-5
|
||||||
|
Loading…
Reference in New Issue
Block a user