#! /bin/sh

. $(dirname $0)/common.sh

while true; do
  if ! /scripts/status.json.sh > /www/status.json.new; then
    log "Unable to render status!"
  else
    mv /www/status.json.new /www/status.json
  fi
  sleep 2
done