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

Diff of /monit/monitor.c

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

revision 1.124 by martinp, Mon Nov 7 15:25:44 2005 UTC revision 1.125 by martinp, Fri Nov 18 22:52:39 2005 UTC
# Line 478  static void do_default() { Line 478  static void do_default() {
478      Event_post(Run.system, EVENT_INSTANCE, STATE_FAILED,      Event_post(Run.system, EVENT_INSTANCE, STATE_FAILED,
479        Run.system->action_MONIT_START, "Monit started");        Run.system->action_MONIT_START, "Monit started");
480    
481      for(;;) {      while(TRUE) {
482    
483        validate();        validate();
484        State_save();        State_save();
485        sleep(Run.polltime);        sleep(Run.polltime);
486    
       if(Run.doreload)  
         do_reinit();  
         
       if(Run.stopped)  
         do_exit();  
         
487        if(Run.dowakeup) {        if(Run.dowakeup) {
488          Run.dowakeup = FALSE;          Run.dowakeup = FALSE;
489          log("Awakened by User defined signal 1\n");          log("Awakened by User defined signal 1\n");
490        }        }
491                
492          if(Run.stopped) {
493            do_exit();
494          } else if(Run.doreload) {
495            do_reinit();
496          } else {
497            Event_post(Run.system, EVENT_INSTANCE, STATE_PASSED,
498              Run.system->action_MONIT_START, "Monit has not changed");
499          }
500          
501      }      }
502            
503    } else {    } else {

Legend:
Removed from v.1.124  
changed lines
  Added in v.1.125

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