Added condstop to all the initscripts (bz 196934)
This commit is contained in:
parent
b960797759
commit
ab5220ebfc
@ -1,7 +1,7 @@
|
|||||||
Summary: NFS utilities and supporting clients and daemons for the kernel NFS server.
|
Summary: NFS utilities and supporting clients and daemons for the kernel NFS server.
|
||||||
Name: nfs-utils
|
Name: nfs-utils
|
||||||
Version: 1.0.12
|
Version: 1.0.12
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
# group all 32bit related archs
|
# group all 32bit related archs
|
||||||
@ -213,10 +213,10 @@ fi
|
|||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
/etc/rc.d/init.d/nfs stop
|
/etc/rc.d/init.d/nfs condstop
|
||||||
/etc/rc.d/init.d/rpcgssd stop
|
/etc/rc.d/init.d/rpcgssd condstop
|
||||||
/etc/rc.d/init.d/rpcidmapd stop
|
/etc/rc.d/init.d/rpcidmapd condstop
|
||||||
/etc/rc.d/init.d/nfslock stop
|
/etc/rc.d/init.d/nfslock condstop
|
||||||
/sbin/chkconfig --del rpcidmapd
|
/sbin/chkconfig --del rpcidmapd
|
||||||
/sbin/chkconfig --del rpcgssd
|
/sbin/chkconfig --del rpcgssd
|
||||||
/sbin/chkconfig --del rpcsvcgssd
|
/sbin/chkconfig --del rpcsvcgssd
|
||||||
@ -285,6 +285,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 9 2007 Steve Dickson <steved@redhat.com> 1.0.12-2
|
||||||
|
- Added condstop to all the initscripts (bz 196934)
|
||||||
|
|
||||||
* Tue Mar 6 2007 Steve Dickson <steved@redhat.com> 1.0.12-1
|
* Tue Mar 6 2007 Steve Dickson <steved@redhat.com> 1.0.12-1
|
||||||
- Upgraded to 1.0.12
|
- Upgraded to 1.0.12
|
||||||
- Fixed typo in Summary.
|
- Fixed typo in Summary.
|
||||||
|
8
nfs.init
8
nfs.init
@ -160,8 +160,14 @@ case "$1" in
|
|||||||
$0 start
|
$0 start
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
|
condstop)
|
||||||
|
[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
|
||||||
|
[ -f /var/lock/subsys/nfs ] && {
|
||||||
|
$0 stop
|
||||||
|
}
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo $"Usage: nfs {start|stop|status|restart|reload|condrestart}"
|
echo $"Usage: nfs {start|stop|status|restart|reload|condrestart|condstop}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -139,8 +139,13 @@ case "$1" in
|
|||||||
start
|
start
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
|
condstop)
|
||||||
|
[ -f /var/lock/subsys/nfslock ] && {
|
||||||
|
stop
|
||||||
|
}
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo $"Usage: $0 {start|stop|status|restart|probe|condrestart}"
|
echo $"Usage: $0 {start|stop|status|restart|probe|condrestart|condstop}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -96,8 +96,14 @@ case "$1" in
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
condstop)
|
||||||
|
if [ -f $LOCKFILE ]; then
|
||||||
|
$0 stop
|
||||||
|
RETVAL=$?
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status}"
|
echo $"Usage: $0 {start|stop|restart|condstart|condrestart|condstop|status}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -82,8 +82,14 @@ case "$1" in
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
condstop)
|
||||||
|
if [ -f $LOCKFILE ]; then
|
||||||
|
$0 stop
|
||||||
|
RETVAL=$?
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status}"
|
echo $"Usage: $0 {start|stop|restart|condstart|condrestart|condstop|status}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -95,8 +95,14 @@ case "$1" in
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
condstop)
|
||||||
|
if [ -f $LOCKFILE ]; then
|
||||||
|
$0 stop
|
||||||
|
RETVAL=$?
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status}"
|
echo $"Usage: $0 {start|stop|restart|condstart|condrestart|condstop|status}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user