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

Diff of /monit/monitor.c

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

revision 1.18 by chopp, Fri Sep 27 09:52:29 2002 UTC revision 1.19 by rory, Wed Oct 2 03:03:45 2002 UTC
# Line 259  static void do_action(char **args) { Line 259  static void do_action(char **args) {
259    }    }
260    else if( is(action, "start") ) {    else if( is(action, "start") ) {
261            
262      if ( P ) dstart_process(P); else      if ( P ) check_process(P, "start"); else
263         if ( mygroup ) start_group(mygroup); else start();         if ( mygroup ) control_group(mygroup, "start"); else control("start");
264        
265    }    }
266    else if( is(action, "stop") ) {    else if( is(action, "stop") ) {
267            
268      if ( P ) dstop_process(P); else      if ( P ) check_process(P, "stop"); else
269         if ( mygroup ) stop_group(mygroup); else stop();         if ( mygroup ) control_group(mygroup, "stop"); else control("stop");
270            
271    }    }
272    else if( is(action, "restart") ) {    else if( is(action, "restart") ) {
# Line 282  static void do_action(char **args) { Line 282  static void do_action(char **args) {
282                    
283        }        }
284                
285        dstop_process(P);        check_process(P, "stop");
286                
287      } else      } else
288          if ( mygroup ) stop_group(mygroup); else stop();          if ( mygroup ) control_group(mygroup, "stop"); else control("stop");
289            
290      do_wait();      do_wait();
291            
292      if ( P ) dstart_process(P); else      if ( P ) check_process(P, "start"); else
293         if ( mygroup ) start_group(mygroup); else start();         if ( mygroup ) control_group(mygroup, "start"); else control("start");
294            
295    }    }
296    else if( is(action, "status") ) {    else if( is(action, "status") ) {

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