validate.c File Reference

This function contains the main process and check machinery for monit. More...

Go to the source code of this file.

Functions

void validate ()
 Walk the process-list and validate each process.


Detailed Description

This function contains the main process and check machinery for monit.

The validate function check processes in the process list to see if they are running and that they accepts connections if ports are defined. Not running processes are restarted. This function also handles the various tests per process that are defined in the control file.

Author:
Jan-Henrik Haukeland, <hauk@tildeslash.com> , Olivier Beyssac, <ob@r14.freenix.org> (check_skip) , Martin Pala <martin.pala@hq.iol.cz> , Christian Hopp <chopp@iei.tu-clausthal.de>
Version:
$Id: validate.c,v 1.31 2002/12/21 13:56:04 hauk Exp $

Definition in file validate.c.


Function Documentation

void validate  
 

Walk the process-list and validate each process.

Definition at line 90 of file validate.c.

References log(), myprocess::next, processlist, reset_depend(), update_loadavg(), and myprocess::visited.