Permalink
Browse files

Add Custom check interval, the default is 15s now - down from 60s.

  • Loading branch information...
darron committed Dec 27, 2014
1 parent a603bdf commit e2b1172bb8ba2e95fd3d928a2ada1f8b426e48e8
Showing with 9 additions and 1 deletion.
  1. +9 −1 bin/octo
View
@@ -382,9 +382,17 @@ case "$1" in
CHECK_COMMAND="$CUSTOM_CHECK"
fi
CUSTOM_CHECK_INTERVAL=$(/usr/bin/octo config:get $CONTAINER/CUSTOM_CHECK_INTERVAL)
if [ -z "$CUSTOM_CHECK_INTERVAL" ]
then
CHECK_INTERVAL="15s"
else
CHECK_INTERVAL="$CUSTOM_CHECK_INTERVAL"
fi
if echo $TAGS | grep -q 'http'
then
CHECK=",\"check\": {\"script\": \"$CHECK_COMMAND\",\"interval\": \"60s\"}"
CHECK=",\"check\": {\"script\": \"$CHECK_COMMAND\",\"interval\": \"$CHECK_INTERVAL\"}"
else
CHECK=""
fi

0 comments on commit e2b1172

Please sign in to comment.