summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-21 05:32:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-21 05:32:21 +0000
commit5b99120951addbe13d0b21169ce62fd162cd8613 (patch)
tree7fae1248dd7d0555b59772e4ef1d61efd9d64c74
parent8061dc59a79822953545485a2e23a7759ee668a1 (diff)
downloadpfsense-5b99120951addbe13d0b21169ce62fd162cd8613.zip
pfsense-5b99120951addbe13d0b21169ce62fd162cd8613.tar.gz
HUP any running olsrd process, do not blindly launch a new process.
-rw-r--r--etc/inc/services.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index f5e9fcd..94f4ae0 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -1167,7 +1167,12 @@ EOD;
fwrite($fd, $olsr);
fclose($fd);
}
- mwexec_bg("/usr/local/sbin/olsrd -f {$g['varetc_path']}/olsr.conf");
+
+ if(is_process_running("olsrd"))
+ mwexec("killall -HUP olsrd");
+ else
+ mwexec_bg("/usr/local/sbin/olsrd -f {$g['varetc_path']}/olsr.conf");
+
}
?> \ No newline at end of file
OpenPOWER on IntegriCloud