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; |
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; } |
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; |
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 |
|
|