74 |
static void do_monitor(Service_T); |
static void do_monitor(Service_T); |
75 |
static void do_unmonitor(Service_T); |
static void do_unmonitor(Service_T); |
76 |
static void monitor_set(Service_T); |
static void monitor_set(Service_T); |
|
static void monitor_unset(Service_T); |
|
77 |
static void *wait_start(void *); |
static void *wait_start(void *); |
78 |
static int wait_stop(Service_T); |
static int wait_stop(Service_T); |
79 |
static void do_depend(Service_T, const char *); |
static void do_depend(Service_T, const char *); |
160 |
|
|
161 |
if(s->type==TYPE_PROCESS && !s->stop) { |
if(s->type==TYPE_PROCESS && !s->stop) { |
162 |
DEBUG("%s: Stop method not defined -- process %s\n", prog, S); |
DEBUG("%s: Stop method not defined -- process %s\n", prog, S); |
163 |
monitor_unset(s); |
Util_monitorUnset(s); |
164 |
return; |
return; |
165 |
} |
} |
166 |
|
|
291 |
|
|
292 |
s->depend_visited= TRUE; |
s->depend_visited= TRUE; |
293 |
|
|
294 |
monitor_unset(s); |
Util_monitorUnset(s); |
295 |
|
|
296 |
if(s->type==TYPE_PROCESS) { |
if(s->type==TYPE_PROCESS) { |
297 |
/* Reset the info object in case of a later restart */ |
/* Reset the info object in case of a later restart */ |
359 |
|
|
360 |
s->depend_visited= TRUE; |
s->depend_visited= TRUE; |
361 |
|
|
362 |
monitor_unset(s); |
Util_monitorUnset(s); |
363 |
|
|
364 |
if(s->type==TYPE_PROCESS) { |
if(s->type==TYPE_PROCESS) { |
365 |
/* Reset the info object in case of a later restart */ |
/* Reset the info object in case of a later restart */ |
383 |
} |
} |
384 |
|
|
385 |
} |
} |
|
|
|
|
|
|
|
/* |
|
|
* This will disable service monitoring in the case that it is enabled |
|
|
* @param s A Service_T object |
|
|
*/ |
|
|
static void monitor_unset(Service_T s) { |
|
|
|
|
|
ASSERT(s); |
|
|
|
|
|
if(s->monitor) { |
|
|
s->monitor= MONITOR_NOT; |
|
|
DEBUG("Monitoring disabled -- service %s\n", s->name); |
|
|
} |
|
|
|
|
|
} |
|
386 |
|
|
387 |
|
|
388 |
/* |
/* |