/[monit]/monit/p.y
ViewVC logotype

Diff of /monit/p.y

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

revision 1.33 by martinp, Sun Nov 3 21:50:30 2002 UTC revision 1.34 by hauk, Tue Nov 5 00:09:36 2002 UTC
# Line 70  Line 70 
70  #include "monit_process.h"  #include "monit_process.h"
71  #include "ssl.h"  #include "ssl.h"
72    
73      #define YERROR(msg) { yyerror(msg); YYABORT; }
74    
75    struct IHavePrecedence {    struct IHavePrecedence {
76      int daemon;      int daemon;
77      int logfile;      int logfile;
# Line 482  program         : PATH { addchecksum($1, Line 483  program         : PATH { addchecksum($1,
483                  | PATH EXPECT STRING { addchecksum($1, $3); }                  | PATH EXPECT STRING { addchecksum($1, $3); }
484                  ;                  ;
485    
486  autostart       : AUTOSTART YES {  autostart       : AUTOSTART {
487                      yyerror("%s: Warning: 'autostart yes' is deprecated - use 'mode active' statement instead");                      YERROR("Warning: 'autostart' is deprecated - "
488                    }                             "use the 'mode' statement instead");
                 | AUTOSTART NO  {  
                     yyerror("%s: Warning: 'autostart no' is deprecated - use 'mode passive' statement instead");  
489                    }                    }
490                  ;                  ;
491    
492  mode            : MODE ACTIVE  { current->mode= MODE_ACTIVE; }  mode            : MODE ACTIVE  { current->mode= MODE_ACTIVE; }
493                  | MODE PASSIVE { current->mode= MODE_PASSIVE; }                  | MODE PASSIVE { current->mode= MODE_PASSIVE; }
494                  | MODE MANUAL  { current->mode= MODE_MANUAL; current->do_validate= FALSE; }                  | MODE MANUAL  { current->mode= MODE_MANUAL;
495                        current->do_validate= FALSE;
496                      }
497                  ;                  ;
498    
499  group           : GROUP STRING { current->group= $2; }  group           : GROUP STRING { current->group= $2; }
# Line 513  resource        : CPUUSAGE resourceop RE Line 514  resource        : CPUUSAGE resourceop RE
514                      resourceset.limit= (int) ($3 * 10.0);                      resourceset.limit= (int) ($3 * 10.0);
515                    }                    }
516                  | CPUUSAGE resourceop NUMBER {                  | CPUUSAGE resourceop NUMBER {
517                     yyerror("Expecting a real number (e.g. 10.0) Got");                      yyerror("Expecting a real number (e.g. 10.0) Got");
518                    }                    }
519                  | MEMUSAGE resourceop REAL {                  | MEMUSAGE resourceop REAL {
520                      resourceset.resource_id= RESOURCE_ID_MEM_PERCENT;                      resourceset.resource_id= RESOURCE_ID_MEM_PERCENT;
521                      resourceset.limit= (int) ($3 * 10.0);                      resourceset.limit= (int) ($3 * 10.0);
522                    }                    }
523                  | MEMUSAGE resourceop NUMBER {                  | MEMUSAGE resourceop NUMBER {
524                     yyerror("Expecting a real number (e.g. 15.0) Got");                      yyerror("Expecting a real number (e.g. 15.0) Got");
525                    }                    }
526                  | MEMKBYTE resourceop NUMBER {                  | MEMKBYTE resourceop NUMBER {
527                      resourceset.resource_id= RESOURCE_ID_MEM_KBYTE;                      resourceset.resource_id= RESOURCE_ID_MEM_KBYTE;
# Line 531  resource        : CPUUSAGE resourceop RE Line 532  resource        : CPUUSAGE resourceop RE
532                      resourceset.limit= (int) ($3 * 10.0);                      resourceset.limit= (int) ($3 * 10.0);
533                    }                    }
534                  | resourceload resourceop NUMBER {                  | resourceload resourceop NUMBER {
535                     yyerror("Expecting a real number (e.g. 5.0) Got");                      yyerror("Expecting a real number (e.g. 5.0) Got");
536                    }                    }
537                  ;                  ;
538    

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

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