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 |
|
|
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 |
|
|
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; |
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"); |