249 |
|
|
250 |
log("Trying to restart '%s'\n", p->name); |
log("Trying to restart '%s'\n", p->name); |
251 |
|
|
252 |
stop_process(p); |
control_process(p, "stop", FORCE_CONTROL); |
253 |
sleep(10); /* Wait for process termination */ |
sleep(10); /* Wait for process termination */ |
254 |
|
|
255 |
va_start(ap, m); |
va_start(ap, m); |
291 |
} |
} |
292 |
|
|
293 |
/* Start process and take care of dependants */ |
/* Start process and take care of dependants */ |
294 |
force_process(p, PSTART); |
control_process(p, "start", FORCE_CONTROL); |
295 |
|
|
296 |
/* (Re)start alert */ |
/* (Re)start alert */ |
297 |
|
|
352 |
sleep(3); /* In case we gonna stop our own smtp server */ |
sleep(3); /* In case we gonna stop our own smtp server */ |
353 |
|
|
354 |
/* Stop the process and dependants */ |
/* Stop the process and dependants */ |
355 |
force_process(p, PSTOP); |
control_process(p, "stop", FORCE_CONTROL); |
356 |
|
|
357 |
} |
} |
358 |
|
|