- Reworked the nfslock init script so if lockd is running it will be killed

which is what the HA community needs. (bz 162446)
- Stopped rpcidmapd.init from doing extra echoing when condstart-ed.
This commit is contained in:
Steve Dickson 2005-09-08 14:27:06 +00:00
parent 68e592b237
commit 819e6dc24e
3 changed files with 12 additions and 10 deletions

View File

@ -257,9 +257,11 @@ fi
%config /etc/rc.d/init.d/nfslock
%changelog
* Tue Sep 6 2005 Steve Dickson <SteveD@RedHat.com> 1.0.7-16
- The nfslock init script no longer needs to bring lockd
down. (bz 162446)
* Tue Sep 8 2005 Steve Dickson <SteveD@RedHat.com> 1.0.7-16
- Reworked the nfslock init script so if lockd is running
it will be killed which is what the HA community needs. (bz 162446)
- Stopped rpcidmapd.init from doing extra echoing when
condstart-ed.
* Wed Aug 24 2005 Peter Jones <pjones@redhat.com> - 1.0.7-15
- don't strip during "make install", so debuginfo packages are generated right

View File

@ -74,11 +74,11 @@ start() {
stop() {
# Stop daemons.
echo -n $"Stopping NFS locking: "
if [ "$USERLAND_LOCKD" ]; then
killproc lockd
if [ -n "`pidofproc lockd`" ]; then
echo -n $"Stopping NFS locking: "
killproc lockd -KILL
echo
fi
echo
echo -n $"Stopping NFS statd: "
killproc rpc.statd
RETVAL=0

View File

@ -29,10 +29,10 @@ prog="rpc.idmapd"
case "$1" in
start|condstart)
# Make sure the daemon is not already running.
if status $prog > /dev/null ; then
[ "$1" = "condstart" ] && killproc $prog "-SIGHUP"
[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
killproc $prog "-SIGHUP" > /dev/null
exit 0
fi
}
rm -f /var/lock/subsys/$prog
echo -n $"Starting RPC idmapd: "