diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-18 22:06:47 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-18 22:06:47 -0400 |
commit | 833eb9d680935bd27ccd49635226745ffef34609 (patch) | |
tree | 42149c343f1e52245e65f99488e61f9a5f5c31a8 /usr/local/www/diag_logs_filter.php | |
parent | 9dac9942c2978995e4721f2024b88b7ea9abb65a (diff) | |
download | pfsense-833eb9d680935bd27ccd49635226745ffef34609.zip pfsense-833eb9d680935bd27ccd49635226745ffef34609.tar.gz |
Do not restart syslkog, just hup it
Diffstat (limited to 'usr/local/www/diag_logs_filter.php')
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index c6c007c..b79106f 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -60,13 +60,12 @@ if ($_POST['clear']) { unlink("/var/log/filter.log"); touch("/var/log/filter.log"); } else { - exec("killall syslogd"); - sleep(1); - if(file_exists("{$filter_logfile}")) - unlink("{$filter_logfile}"); +// exec("killall syslogd"); +// sleep(1); +// if(file_exists("{$filter_logfile}")) +// unlink("{$filter_logfile}"); exec("/usr/sbin/fifolog_create -s 511488 {$filter_logfile}"); - exec("/bin/date | /usr/sbin/fifolog_writer {$filter_logfile}"); - system_syslogd_start(); + exec("/usr/bin/killall -HUP syslogd"); } } |