+ busy
+ # We can't kill by process name, asyncd is changing it dynamically
+ # so we simply send TERM to all asyncd processes
+ for ppid in $(pgrep "^munin-asyncd "); do
+ kill -TERM ${ppid}
+ done
+ timeout=0
+ while pgrep "^munin-asyncd " 1>/dev/null 2>&1; do
+ # If timeout was reached send kill signal and break loop
+ if [ $timeout -ge $MUNIN_ASYNCD_SHUTDOWN_TIMEOUT ]; then
+ for ppid in $(pgrep "^munin-asyncd "); do
+ kill -KILL ${ppid}
+ done
+ break
+ fi
+ sleep 1
+ timeout=$((timeout+1))
+ done
+ ok