summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/gwlb.inc17
1 files changed, 7 insertions, 10 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 94ddd17..eda0b06 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -235,16 +235,13 @@ EOD;
fwrite($fd, $apingerconfig);
fclose($fd);
- if (is_process_running("apinger")) {
- sigkillbypid("{$g['varrun_path']}/apinger.pid", "HUP");
- } else {
- if (is_dir("{$g['tmp_path']}"))
- chmod("{$g['tmp_path']}", 01777);
- if (is_dir("{$g['vardb_path']}/rrd"))
- chown("{$g['vardb_path']}/rrd", "nobody");
- /* start a new apinger process */
- mwexec_bg("/usr/local/sbin/apinger -c {$g['varetc_path']}/apinger.conf");
- }
+ killbypid("{$g['varrun_path']}/apinger.pid");
+ if (is_dir("{$g['tmp_path']}"))
+ chmod("{$g['tmp_path']}", 01777);
+ if (is_dir("{$g['vardb_path']}/rrd"))
+ chown("{$g['vardb_path']}/rrd", "nobody");
+ /* start a new apinger process */
+ mwexec_bg("/usr/local/sbin/apinger -c {$g['varetc_path']}/apinger.conf");
return 0;
}
OpenPOWER on IntegriCloud