+
+ if [ -f "$pidfile" ]; then
+ show "Waiting for Zabbix Server to stop"
+ busy
+
+ timeout=0
+ while : ; do
+ [ ! -f "$pidfile" ] || break
+ if [ $timeout -ge $ZABBIX_SHUTDOWN_TIMEOUT ]; then
+ RETVAL=1
+ break
+ fi
+ sleep 1 && echo -n "."
+ timeout=$((timeout+1))
+ done
+ ok
+ fi
+