Skip to content

Commit

Permalink
Improve service check
Browse files Browse the repository at this point in the history
  • Loading branch information
hrchu authored Nov 12, 2019
1 parent f2ef2b8 commit 5a9b2ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ then
fi

find /var/lib/mysql -type f -exec touch {} \; && mysqld &
sleep 3
timeout 60 bash -c "until mysql -h127.0.0.1 -uroot -psuper -e 'select null limit 1'; do sleep 1; done"

sudo -u mogile mogilefsd --daemon -c /etc/mogilefs/mogilefsd.conf
sleep 3
sleep 5

mogadm --trackers=127.0.0.1:7001 host add mogilestorage --ip=${NODE_HOST} --port=${NODE_PORT} --status=alive
mogadm --trackers=127.0.0.1:7001 device add mogilestorage 1
Expand All @@ -43,7 +43,7 @@ mogadm domain list
mogadm class list

sudo -u mogile mogstored -c /etc/mogilefs/mogstored.conf &
sleep 3
sleep 5

mogadm check
pkill mogilefsd
Expand Down

0 comments on commit 5a9b2ed

Please sign in to comment.