check process unbound with pidfile /var/lib/unbound/unbound.pid
	group dns
	group unbound
	start program = "/sbin/service unbound start"
	stop  program = "/sbin/service unbound stop"
	if failed port 53 type udp protocol dns
		then restart
	if failed port 53 type tcp protocol dns
		then restart
	if 5 restarts with 5 cycles
		then timeout
	depend on unbound_bin

check file unbound_bin with path /usr/sbin/unbound
	group unbound
	include /etc/monitrc.d/templates/rootbin

check file unbound_rc with path /var/lib/unbound/unbound.conf
	group unbound
	include /etc/monitrc.d/templates/rootrc
