diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-02-21 05:32:21 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-02-21 05:32:21 +0000 |
commit | 5b99120951addbe13d0b21169ce62fd162cd8613 (patch) | |
tree | 7fae1248dd7d0555b59772e4ef1d61efd9d64c74 /etc/inc/services.inc | |
parent | 8061dc59a79822953545485a2e23a7759ee668a1 (diff) | |
download | pfsense-5b99120951addbe13d0b21169ce62fd162cd8613.zip pfsense-5b99120951addbe13d0b21169ce62fd162cd8613.tar.gz |
HUP any running olsrd process, do not blindly launch a new process.
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r-- | etc/inc/services.inc | 7 |
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 |