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

Diff of /monit/control.c

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

revision 1.18 by martinp, Mon Dec 16 23:17:52 2002 UTC revision 1.19 by martinp, Tue Dec 17 07:50:24 2002 UTC
# Line 197  void check_process(char *P, char *action Line 197  void check_process(char *P, char *action
197    if( toggle_validate_flag ) {    if( toggle_validate_flag ) {
198    
199      if( is(action, "start")) {      if( is(action, "start")) {
   
       if(Run.debug)  
         log("Starting monitoring -- process %s\n", p->name);  
   
200        LOCK(Run.mutex)        LOCK(Run.mutex)
201          p->do_validate= TRUE;          p->do_validate= TRUE;
202        END_LOCK;        END_LOCK;
     }  
   
     if( is(action, "stop")) {  
203    
204        if(Run.debug)        if(Run.debug)
205          log("Stoping monitoring -- process %s\n", p->name);          log("Monitoring enabled -- process %s\n", p->name);
206    
207        }
208    
209        if( is(action, "stop")) {
210        LOCK(Run.mutex)        LOCK(Run.mutex)
211          p->do_validate= FALSE;          p->do_validate= FALSE;
212        END_LOCK;        END_LOCK;
213    
214          if(Run.debug)
215            log("Monitoring disabled -- process %s\n", p->name);
216    
217      }      }
218    
219    }    }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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