autofs-5.0.3 - fix init script stop From: Ian Kent I was told about the init script stop function not working preperly ages ago but I clearly didn't look closely enough at it. --- CHANGELOG | 1 + samples/rc.autofs.in | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c658c86..8cdaab2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -46,6 +46,7 @@ - fix segv during library re-open. - fix incorrect pthreads condition handling for expire requests. - fix $mandir definition in Makefile.conf.in +- fix init script stop function. 14/01/2008 autofs-5.0.3 ----------------------- diff --git a/samples/rc.autofs.in b/samples/rc.autofs.in index 8003231..e333e95 100644 --- a/samples/rc.autofs.in +++ b/samples/rc.autofs.in @@ -66,7 +66,7 @@ function stop() { [ $RETVAL = 0 -a -z "`pidof $DAEMON`" ] || sleep 3 count=`expr $count + 1` done - if [ -n "`pidof $DAEMON`" ] ; then + if [ -z "`pidof $DAEMON`" ] ; then echo "done." else echo "failed."