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

Diff of /monit/control.c

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

revision 1.94 by martinp, Mon Apr 11 22:27:53 2005 UTC revision 1.95 by martinp, Mon Apr 11 22:44:19 2005 UTC
# Line 183  void control_service(const char *S, cons Line 183  void control_service(const char *S, cons
183          return;          return;
184        }        }
185        log("'%s' trying to restart\n", s->name);        log("'%s' trying to restart\n", s->name);
       /* don't unmonitor the service - keep the start counters state */  
186        do_depend(s, ACTION_STOP);        do_depend(s, ACTION_STOP);
187        if(do_stop(s)) {        if(do_stop(s)) {
188          /* Only start if stop succeeded */          /* Only start if stop succeeded */
# Line 300  static int do_stop(Service_T s) { Line 299  static int do_stop(Service_T s) {
299    
300    s->depend_visited= TRUE;    s->depend_visited= TRUE;
301    
302    /* do soft unmonitor - start counter state is kept, in the case that    /* do soft unmonitor - start counter and error state is kept */
      the process should be definitely stopped, Util_monitorUnset should  
      be called after do_stop */  
303    if(s->monitor != MONITOR_NOT)    if(s->monitor != MONITOR_NOT)
304    {    {
305      s->monitor= MONITOR_NOT;      s->monitor= MONITOR_NOT;

Legend:
Removed from v.1.94  
changed lines
  Added in v.1.95

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