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

Diff of /monit/monitor.c

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

revision 1.74 by hauk, Sun Sep 14 21:00:05 2003 UTC revision 1.75 by martinp, Sun Sep 14 22:12:24 2003 UTC
# Line 594  static void do_default() { Line 594  static void do_default() {
594            
595      for(;;) {      for(;;) {
596    
597        if(Run.validate != TRUE) {        validate();
         validate();  
       } else {  
         Run.validate= FALSE;  
       }  
   
598        sleep(Run.polltime);        sleep(Run.polltime);
599        state_save();        state_save();
600    
# Line 643  static void handle_options(int argc, cha Line 638  static void handle_options(int argc, cha
638    
639    Run.mygroup=0;    Run.mygroup=0;
640    
641    while((opt= getopt(argc,argv,"c:d:g:l:p:s:iItvVh")) != -1) {    while((opt= getopt(argc,argv,"c:d:g:l:p:s:ItvVh")) != -1) {
642    
643      switch(opt) {      switch(opt) {
644    
# Line 679  static void handle_options(int argc, cha Line 674  static void handle_options(int argc, cha
674          Run.statefile= xstrdup(optarg);          Run.statefile= xstrdup(optarg);
675          break;          break;
676    
     case 'i':  
         Run.validate= TRUE;  
         break;  
   
677      case 'I':      case 'I':
678          Run.init= TRUE;          Run.init= TRUE;
679          break;          break;
# Line 743  static void help() { Line 734  static void help() {
734    printf(" -l logfile   Print log information to this file\n");    printf(" -l logfile   Print log information to this file\n");
735    printf(" -p pidfile   Use this lock file in daemon mode\n");    printf(" -p pidfile   Use this lock file in daemon mode\n");
736    printf(" -s statefile Set the file monit should write state information to\n");    printf(" -s statefile Set the file monit should write state information to\n");
   printf(" -i           Validate mode, startup in validate mode\n");  
737    printf(" -I           Init mode, run from init\n");    printf(" -I           Init mode, run from init\n");
738    printf(" -t           Run syntax check for the control file\n");    printf(" -t           Run syntax check for the control file\n");
739    printf(" -v           Verbose mode, work noisy (diagnostic output)\n");    printf(" -v           Verbose mode, work noisy (diagnostic output)\n");

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75

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