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 */ |
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; |