/[monit]/monit/monitor.c
ViewVC logotype

Diff of /monit/monitor.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by martinp, Thu Oct 31 11:41:31 2002 UTC revision 1.22 by chopp, Sat Nov 2 10:47:22 2002 UTC
# Line 80  static void  help();                 /* Line 80  static void  help();                 /*
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
# Line 144  static void do_init() { Line 144  static void do_init() {
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     */     */
# Line 171  static void do_init() { Line 162  static void do_init() {
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);
# Line 178  static void do_init() { Line 170  static void do_init() {
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() ) {
# Line 195  static void do_init() { Line 178  static void do_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     */     */
# Line 669  static void start_http() { Line 658  static void start_http() {
658    monit_http(START_HTTP);    monit_http(START_HTTP);
659    
660  }  }
661    
662    

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26