282 |
if(p->mode!=MODE_PASSIVE && p->start && p->stop) { |
if(p->mode!=MODE_PASSIVE && p->start && p->stop) { |
283 |
|
|
284 |
log("Trying to restart '%s'\n", p->name); |
log("Trying to restart '%s'\n", p->name); |
285 |
|
check_process(p->name, "restart"); |
|
check_process(p->name, "stop", FALSE); |
|
|
check_process(p->name, "start", FALSE); |
|
286 |
smtp_alert_restart(p, "%s", tmp); |
smtp_alert_restart(p, "%s", tmp); |
287 |
|
|
288 |
} else { |
} else { |
320 |
|
|
321 |
if(p->mode!= MODE_PASSIVE && p->start) { |
if(p->mode!= MODE_PASSIVE && p->start) { |
322 |
|
|
323 |
check_process(p->name, "start", FALSE); |
check_process(p->name, "start"); |
324 |
smtp_alert_restart(p, "%s", tmp); |
smtp_alert_restart(p, "%s", tmp); |
325 |
|
|
326 |
} else { |
} else { |
360 |
if(p->mode!= MODE_PASSIVE && p->stop) { |
if(p->mode!= MODE_PASSIVE && p->stop) { |
361 |
|
|
362 |
smtp_alert_stop(p, "%s", tmp); |
smtp_alert_stop(p, "%s", tmp); |
363 |
check_process(p->name, "stop", FALSE); |
check_process(p->name, "stop"); |
364 |
|
|
365 |
} else { |
} else { |
366 |
|
|