There is also this loop which can be infinite
until check_pid_and_port $RSYNC_PID $RSYNC_PORT do sleep 0.2 done
where it does
" [ -r "$pid_file" ] && ps -p $(cat $pid_file) >/dev/null 2>&1 "
There is also this loop which can be infinite
until check_pid_and_port $RSYNC_PID $RSYNC_PORT
do
sleep 0.2
done
where it does
" [ -r "$pid_file" ] && ps -p $(cat $pid_file) >/dev/null 2>&1
"