start.c File Reference

Methods for starting processes managed by monit. More...

Go to the source code of this file.

Functions

void start ()
 Start all processes in the process list. More...

void start_group (char *G)
 Start all processes in the group. More...

void start_process (Process_T p)
 Start the given process. More...

void dstart_process (char *P)
 Request the monit deamon to start the process P. More...


Detailed Description

Methods for starting processes managed by monit.

Author:
Jan-Henrik Haukeland, <hauk@tildeslash.com>
Version:
$Id: start.c,v 1.10 2002/09/06 18:13:37 hauk Exp $

Definition in file start.c.


Function Documentation

void dstart_process char *    P
 

Request the monit deamon to start the process P.

Parameters:
P  A process name as stated in the config file

Definition at line 125 of file start.c.

References myrun::bind_addr, close_socket(), myrun::controlfile, create_socket(), error(), exist_daemon(), exist_process(), get_basic_authentication_header(), get_process(), myrun::httpdport, is_process_running(), prog, Run, sock_send(), and start_process().

Referenced by start(), and start_group().

void start  
 

Start all processes in the process list.

Definition at line 56 of file start.c.

References dstart_process(), myprocess::name, myprocess::next, processlist, and myprocess::start.

void start_group char *    G
 

Start all processes in the group.

Definition at line 72 of file start.c.

References dstart_process(), myprocess::group, is, myprocess::name, myprocess::next, processlist, and myprocess::start.

void start_process Process_T    p
 

Start the given process.

Parameters:
p  A Process_T object

Definition at line 94 of file start.c.

References mycommand::arg, error(), is_process_running(), log(), myprocess::name, spawn(), and myprocess::start.

Referenced by dstart_process().