monit_http.c File Reference

Facade functions for the cervlet sub-system. More...

Go to the source code of this file.

Functions

int check_httpd ()
 Check if the HTTPD server is running.

int can_http ()
void monit_http (int action)
 Start and stop the monit http server.


Detailed Description

Facade functions for the cervlet sub-system.

Start/Stop the monit http server and check if monit http can start.

Author:
Jan-Henrik Haukeland, <hauk@tildeslash.com>
Version:
$Id: monit_http.c,v 1.10 2002/12/17 22:03:08 hauk Exp $

Definition in file monit_http.c.


Function Documentation

int can_http  
 

Returns:
TRUE if the monit http can start and is specified in the controlfile to start, otherwise return FALSE. Print an error message if monit httpd _should_ start but can't.

Definition at line 86 of file monit_http.c.

References myrun::Auth, myrun::myautentication::defined, myrun::dohttpd, has_hosts_allow(), myrun::isdaemon, log(), prog, and Run.

int check_httpd  
 

Check if the HTTPD server is running.

Definition at line 73 of file monit_http.c.

References myrun::bind_addr, check_connect(), myrun::httpdport, and Run.

void monit_http int    action
 

Start and stop the monit http server.

Parameters:
action  START_HTTP or STOP_HTTP

Definition at line 112 of file monit_http.c.

References log(), prog, START_HTTP, STOP_HTTP, and stop_httpd().