mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Restart filter logging process after timezone change so that the entries reflect the correct time and date.
This commit is contained in:
parent
83d821dbc2
commit
ff46cd46c7
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user