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

Diff of /monit/control.c

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

revision 1.85 by hauk, Sun Dec 12 23:45:08 2004 UTC revision 1.86 by martinp, Mon Jan 3 20:33:15 2005 UTC
# Line 295  static int do_stop(Service_T s) { Line 295  static int do_stop(Service_T s) {
295    monitor_unset(s);    monitor_unset(s);
296    
297    if(s->type==TYPE_PROCESS) {    if(s->type==TYPE_PROCESS) {
298      /* Reset the proc info object in case of a later restart */      /* Reset the info object in case of a later restart */
299      Util_resetProcInfo(s);      Util_resetInfo(s);
300    }    }
301    
302    if(s->stop && (s->type!=TYPE_PROCESS || Util_isProcessRunning(s))) {    if(s->stop && (s->type!=TYPE_PROCESS || Util_isProcessRunning(s))) {
# Line 363  static void do_unmonitor(Service_T s) { Line 363  static void do_unmonitor(Service_T s) {
363    monitor_unset(s);    monitor_unset(s);
364        
365    if(s->type==TYPE_PROCESS) {    if(s->type==TYPE_PROCESS) {
366      /* Reset the proc info object in case of a later restart */      /* Reset the info object in case of a later restart */
367      Util_resetProcInfo(s);      Util_resetInfo(s);
368    }    }
369        
370  }  }

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