Commit 9480193f authored by Paul Cammish's avatar Paul Cammish
Browse files

Update 80-monit

parent 20fe6e77
......@@ -2,15 +2,11 @@
# Check all the services are up and running as expected before continuing.
echo -n "I: Checking all $( find /etc/symbiosis/monit.d -type l | wc -l ) Monit tests pass."
# If it's disabled for some reason, re-enable monit (so the test count is right).
if [ -f '/etc/symbiosis/monit.d/disabled' ]; then
rm '/etc/symbiosis/monit.d/disabled'
fi
while [ $( symbiosis-monit --force | grep -c "^ \* .*: PASSED$" ) -ne $( find /etc/symbiosis/monit.d -type l | wc -l ) ]; do
echo -n '.'
sleep 3
done
echo ' done.'
echo -n "I: Waiting for all $( find /etc/symbiosis/monit.d -type l | wc -l ) Monit tests to pass."
until symbiosis-monit --force ; do echo -n '.' ; done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment