/[monit]/monit/http/cervlet.c
ViewVC logotype

Diff of /monit/http/cervlet.c

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

revision 1.32 by hauk, Tue Nov 19 09:35:57 2002 UTC revision 1.33 by rory, Mon Nov 25 23:44:25 2002 UTC
# Line 532  static void handle_action(HttpRequest re Line 532  static void handle_action(HttpRequest re
532                
533        struct myprocess *p= get_process(name);        struct myprocess *p= get_process(name);
534                
535        if(is(action, "start")) {        if(is(action, "start") || is(action, "stop")) {
536            
537          LOCK(Run.mutex)          check_process(name, action, TRUE);
             p->do_validate= TRUE;  
         END_LOCK;  
         control_process(p, "start", FORCE_CONTROL);  
538                    
539        }        }
540                
       if(is(action, "stop")) {  
           
         LOCK(Run.mutex)  
             p->do_validate= FALSE;  
         END_LOCK;  
         control_process(p, "stop", FORCE_CONTROL);  
           
       }  
   
541        if(is(action, "status")) {        if(is(action, "status")) {
542    
543          print_status(p, res);          print_status(p, res);

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

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