check process gerrit with pidfile {__LOG_DIR__}/gerrit/gerrit.pid
start program "/opt/collabnet/teamforge/bin/teamforge start -s gerrit" with timeout {__gerrit/daemon/startupTimeout__} seconds
stop program "/opt/collabnet/teamforge/bin/teamforge stop -s gerrit"
if failed
    url http://localhost:{__gerrit/bind/http-sync/port__}/api/health?verbose=true&thorough=false
    for {__SERVICE_RESTART_AFTER_CYCLES__} cycles
then restart
