#
# safetynet configuration file
#
# the syntax is as follows:
# job <name> { process name; restart command[; failure command[; pass command]] }
#  the process name is still the parameter that is looked for in the running list
#  the restart command is still what should be run if it is not found.
#  the failure command will be executed when the job wasn't running and couldn't be restarted. (this may be left blank)
#  the pass command will be executed when the job wasn't running and could be restarted. (this may be left blank)
#
# You can put your job defines all on one line or span them out over multiple lines.

# some examples
job Apache  { httpd; /usr/pkg/sbin/apachectl restart }
job QMail   {
	qmail-send;
	/bin/csh -cf '/var/qmail/rc &'
}

# matching via regexp's from a command line.
# this matches: qmail-lspawn |dot-forward .forward?./Mailbox
job QM-Spawn { "qmail-lspawn.*forward.*" ; true }

# running a custom command
job Apache2  {
	httpd;
	/usr/pkg/sbin/apachectl restart;
	/usr/pkg/bin/safetynet-page httpd;
	/usr/pkg/bin/safetynet-path httpd ok;
}
