diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-07-06 18:30:24 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-07-06 18:30:24 +0000 |
commit | aa1ab1da895f3ad49163e6a6d2dcf3f399d6cefb (patch) | |
tree | e3e891406458b13d2bbd9df1025ce2b14feb6542 /usr/local/www/system.php | |
parent | 0bdbb9ea3c210c671cd1ed59714d2270525a0afd (diff) | |
download | pfsense-aa1ab1da895f3ad49163e6a6d2dcf3f399d6cefb.zip pfsense-aa1ab1da895f3ad49163e6a6d2dcf3f399d6cefb.tar.gz |
Restart filter logging process after timezone change so that the entries reflect the correct time and date.
Diffstat (limited to 'usr/local/www/system.php')
-rwxr-xr-x | usr/local/www/system.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php index 34d871b..f5bbe32 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -62,6 +62,17 @@ function is_timezone($elt) { return !preg_match("/\/$/", $elt); } +if($pconfig['timezone'] <> $_POST['timezone']) { + /* restart firewall log dumper helper */ + require_once("functions.inc"); + $pid = `ps awwwux | grep -v "grep" | grep "tcpdump -vv -l -n -e -ttt -i pflog0" | awk '{ print $2 }'`; + if($pid) { + mwexec("kill $pid"); + usleep(1000); + } + filter_pflog_start(); +} + exec('/usr/bin/tar -tzf /usr/share/zoneinfo.tgz', $timezonelist); $timezonelist = array_filter($timezonelist, 'is_timezone'); sort($timezonelist); |