|
NAMEmonitord —
monitor system services for accidental termination
SYNOPSIS
DESCRIPTIONmonitord is a simple to use system service that allows
one to easily monitor other system services for accidental termination. If
they terminate because of some internal bug or illegitimate action, such as a
DoS attack, they are restarted with the given username and parameters
specified in monitord.conf.
The two command line options are as follows:
The configuration file for The second column consists of the options to be used in monitoring that particular service. Currently, three options are supported:
The third column is the delay that will
follow the startup of that particular service. Some services take a while to
start up, especially if they need to perform preperatory tasks in a wrapper
script, so to keep The fourth and fifth columns are the service being monitored and script used to start the service, respectively. Only the script column includes the full path. If no special wrapper script is being used but instead the service's binary is invoked directly simply include the path to the service in the script column. The service field should always contain the name of the binary being executed. See examples in monitord.conf. The last column, which is optional, may contain any
parameters that should be passed to the
script (or binary as the case may be). For instance,
the following line would configure root auto,alert 30 sendmail /usr/sbin/sendmail -bd -q60m EXAMPLESHere are a few more example service entries:root auto,alert 30 syslogd /usr/sbin/inetd -wW root auto,alert 30 syslogd /usr/sbin/syslogd www auto,alert 60 httpd /usr/local/etc/rc.d/apache.sh IMPLEMENTATION NOTESThis is version 0.4.1.When using a time interval that is smaller than 5 seconds, an increasingly larger amount of CPU time will be used by the process. It is recommended that one keep the interval equal to or above 5 seconds. The default of 10 seconds may be changed in config.h before compile time. FILES
DIAGNOSTICSWhen restarting a service which it is monitoring,monitord will notify
syslogd(8)
of the event.
AUTHORThis manual page was written by W. M. Shandruk ⟨walt@erudition.net⟩.BUGSThere are no known bugs.
Visit the GSP FreeBSD Man Page Interface. |