Add a wait_for_pids at the end of the rc script stop function, waiting for the

daemon to stops. With smokeping busy pinging a few hundred hosts it often occurs
that the daemon stops after the rc call completion failing a restart.
Bump PORTREVISION.

PR:		221009
Submitted by:	vegeta@tuxpowered.net
This commit is contained in:
Rodrigo Osorio 2017-07-31 22:15:03 +00:00
parent 755f66e223
commit be0fae785a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447003
2 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= smokeping
PORTVERSION= 2.6.11
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= net-mgmt www
MASTER_SITES= http://oss.oetiker.ch/smokeping/pub/ \
http://smokeping.cs.pu.edu.tw/pub/

View File

@ -104,6 +104,7 @@ smokeping_stop()
else
echo "Stopping ${name}."
kill -TERM $rc_pid
wait_for_pids $rc_pid
fi
}