Skip to content

Commit

Permalink
[script] add missing trytime++
Browse files Browse the repository at this point in the history
  • Loading branch information
benja-wu committed Aug 3, 2021
1 parent f2014ee commit 4c401cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example/sbin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pid=""
while [ "$pid" = "" ]
do
sleep 3
try_time=$(($try_time+1))
pid=`ps -eo pid,args | grep "$server" | grep -v grep | awk '{print $1}'`
if [[ $try_time -ge 2 ]]; then
echo "Error: failed to start $sever"
Expand Down

0 comments on commit 4c401cf

Please sign in to comment.