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

Diff of /monit/p.y

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

revision 1.85 by hauk, Tue Jul 15 01:02:58 2003 UTC revision 1.86 by hauk, Sat Jul 19 01:13:05 2003 UTC
# Line 218  Line 218 
218  %token SSLAUTO SSLV2 SSLV3 TLSV1  %token SSLAUTO SSLV2 SSLV3 TLSV1
219  %token BYTE KILOBYTE MEGABYTE GIGABYTE  %token BYTE KILOBYTE MEGABYTE GIGABYTE
220  %token INODE SPACE PERM  %token INODE SPACE PERM
221    %token EXEC
222    
223  %left GREATER LESS EQUAL NOTEQUAL  %left GREATER LESS EQUAL NOTEQUAL
224    
# Line 270  optproc         : start Line 271  optproc         : start
271                  | depend                  | depend
272                  | resource resourcecycle action {                  | resource resourcecycle action {
273                     resourceset.action= $<number>3;                     resourceset.action= $<number>3;
274                       if((resourceset.action == ACTION_EXEC) && command) {
275                         command->events |= EVENT_RESOURCE;
276                         addcommand(EXEC);
277                       }
278                     addresource(&resourceset);                     addresource(&resourceset);
279                    }                    }
280                  ;                  ;
# Line 747  timestamp       : TIMESTAMP PATH operato Line 752  timestamp       : TIMESTAMP PATH operato
752                      timestampset.operator= $<number>3;                      timestampset.operator= $<number>3;
753                      timestampset.time= ($4 * $<number>5);                      timestampset.time= ($4 * $<number>5);
754                      timestampset.action= $<number>6;                      timestampset.action= $<number>6;
755                        if((timestampset.action == ACTION_EXEC) && command) {
756                          command->events |= EVENT_TIMESTAMP;
757                          addcommand(EXEC);
758                        }
759                    }                    }
760                  ;                  ;
761    
# Line 767  time            : /* EMPTY */ { $<number Line 776  time            : /* EMPTY */ { $<number
776  action          : ALERT       { $<number>$= ACTION_ALERT; }  action          : ALERT       { $<number>$= ACTION_ALERT; }
777                  | RESTART     { $<number>$= ACTION_RESTART; }                  | RESTART     { $<number>$= ACTION_RESTART; }
778                  | STOP        { $<number>$= ACTION_STOP; }                  | STOP        { $<number>$= ACTION_STOP; }
779                    | EXEC argumentlist { $<number>$= ACTION_EXEC; }
780                    | EXEC argumentlist useroptionlist { $<number>$= ACTION_EXEC; }
781                  ;                  ;
782    
783  inode           : INODE operator NUMBER action {  inode           : INODE operator NUMBER action {
# Line 1267  static void *addprotocol(int proto) { Line 1278  static void *addprotocol(int proto) {
1278  static void addcommand(int what) {  static void addcommand(int what) {
1279    
1280    switch(what) {    switch(what) {
1281          case START: current->start= command; break;
1282      case START: current->start= command; break;    case STOP:  current->stop= command; break;
1283      case STOP:  current->stop= command; break;    case EXEC:
1284                  if(current->execlist != NULL) {
1285            command->next= current->execlist;
1286          }
1287          current->execlist= command;
1288          break;
1289    }    }
1290        
1291    command= NULL;    command= NULL;
# Line 1948  static void order_depend(Service_T s) { Line 1963  static void order_depend(Service_T s) {
1963    depend_list= s;    depend_list= s;
1964    
1965  }  }
1966    

Legend:
Removed from v.1.85  
changed lines
  Added in v.1.86

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