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

Diff of /monit/control.c

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

revision 1.88 by martinp, Mon Mar 14 22:30:14 2005 UTC revision 1.89 by martinp, Mon Mar 14 23:11:46 2005 UTC
# Line 293  static int do_stop(Service_T s) { Line 293  static int do_stop(Service_T s) {
293    
294    Util_monitorUnset(s);    Util_monitorUnset(s);
295    
   if(s->type==TYPE_PROCESS) {  
     /* Reset the info object in case of a later restart */  
     Util_resetInfo(s);  
   }  
   
296    if(s->stop && (s->type!=TYPE_PROCESS || Util_isProcessRunning(s))) {    if(s->stop && (s->type!=TYPE_PROCESS || Util_isProcessRunning(s))) {
297      log("'%s' stop: %s\n", s->name, s->stop->arg[0]);      log("'%s' stop: %s\n", s->name, s->stop->arg[0]);
298      spawn(s, s->stop, "Stopped");      spawn(s, s->stop, "Stopped");
# Line 361  static void do_unmonitor(Service_T s) { Line 356  static void do_unmonitor(Service_T s) {
356        
357    Util_monitorUnset(s);    Util_monitorUnset(s);
358        
   if(s->type==TYPE_PROCESS) {  
     /* Reset the info object in case of a later restart */  
     Util_resetInfo(s);  
   }  
     
359  }  }
360    
361    

Legend:
Removed from v.1.88  
changed lines
  Added in v.1.89

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