summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-05-23 11:33:39 +0200
committersmos <seth.mos@dds.nl>2012-05-23 11:35:31 +0200
commitd1796d06da0b1d362a5bb1008c620842c234abfe (patch)
tree54235895a65011fdc3957dbe7da9a529420f8bb8 /etc/inc
parent739808f779c730c8dc49499d3df27c1a8071c18c (diff)
downloadpfsense-d1796d06da0b1d362a5bb1008c620842c234abfe.zip
pfsense-d1796d06da0b1d362a5bb1008c620842c234abfe.tar.gz
Kill the old 3gstats collector. Clarify the log message
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/interfaces.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 6f06c7a..7b119c9 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1723,9 +1723,10 @@ EOD;
}
foreach($ports as $port) {
+ mwexec("ps auxww|grep \"{$interface}\" |grep \"[3]gstats\" | awk '{print $2}' |xargs kill'");
$mondev = substr(basename($port), 0, -1). "3";
- log_error("/usr/local/bin/3gstats.php $mondev $interface");
- mwexec_bg("/usr/local/bin/3gstats.php $mondev {$interface}");
+ log_error("Starting 3gstats.php on device '{$mondev}' for interface '{$interface}'");
+ mwexec_bg("/usr/local/bin/3gstats.php {$mondev} {$interface}");
}
return 1;
OpenPOWER on IntegriCloud