80 |
static void version(); /* Print version information */ |
static void version(); /* Print version information */ |
81 |
static void stop_http(); /* Stop monit http */ |
static void stop_http(); /* Stop monit http */ |
82 |
static void start_http(); /* Start monit http */ |
static void start_http(); /* Start monit http */ |
83 |
|
static void use_ssl(); /* Is SSL okay for this session? */ |
84 |
|
|
85 |
/** |
/** |
86 |
* The Prime mover |
* The Prime mover |
144 |
|
|
145 |
} |
} |
146 |
|
|
|
/* |
|
|
* Inititlize the ssl engine |
|
|
*/ |
|
|
if ( have_ssl() ) { |
|
|
|
|
|
start_ssl(); |
|
|
|
|
|
} |
|
|
|
|
147 |
/* |
/* |
148 |
* Get the position of the control file |
* Get the position of the control file |
149 |
*/ |
*/ |
162 |
* Start the Parser and create the process list. This will also set |
* Start the Parser and create the process list. This will also set |
163 |
* any Runtime constants defined in the controlfile. |
* any Runtime constants defined in the controlfile. |
164 |
*/ |
*/ |
165 |
|
|
166 |
if ( ! parse(Run.controlfile) ) { |
if ( ! parse(Run.controlfile) ) { |
167 |
|
|
168 |
exit(1); |
exit(1); |
170 |
} |
} |
171 |
|
|
172 |
/* |
/* |
|
* Check the permissions of the SSL related files |
|
|
*/ |
|
|
if ( ! check_ssl_files() ) { |
|
|
|
|
|
exit(1); |
|
|
|
|
|
} |
|
|
|
|
|
/* |
|
173 |
* Initialize the log system |
* Initialize the log system |
174 |
*/ |
*/ |
175 |
if ( ! log_init() ) { |
if ( ! log_init() ) { |
178 |
|
|
179 |
} |
} |
180 |
|
|
181 |
|
/* |
182 |
|
* Inititlize the ssl engine |
183 |
|
*/ |
184 |
|
use_ssl(); |
185 |
|
|
186 |
|
|
187 |
/* |
/* |
188 |
* Did we find any process ? |
* Did we find any process ? |
189 |
*/ |
*/ |
658 |
monit_http(START_HTTP); |
monit_http(START_HTTP); |
659 |
|
|
660 |
} |
} |
661 |
|
|
662 |
|
|