File: http://svn.grimore.org/configuration-templates/monit/debian/templates/tinyproxy -

###########################################################################
##  Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3      ##
###########################################################################
 
check process tinyproxy with pidfile /var/run/tinyproxy/tinyproxy.pid
   start program  "/etc/init.d/tinyproxy restart"
   stop program  "/etc/init.d/tinyproxy stop"
   if failed host 127.0.0.1 port 8888 type tcp then restart
   # if 5 restarts within 5 cycles then timeout