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_ntpd.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_ntpd.php')
-rw-r--r-- | usr/local/www/diag_logs_ntpd.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr/local/www/diag_logs_ntpd.php b/usr/local/www/diag_logs_ntpd.php index 8f2efa4..57a9aae 100644 --- a/usr/local/www/diag_logs_ntpd.php +++ b/usr/local/www/diag_logs_ntpd.php @@ -49,13 +49,12 @@ if ($_POST['clear']) { unlink($ntpd_logfile); touch($ntpd_logfile); } else { - exec("killall syslogd"); - sleep(1); - if(file_exists("{$ntpd_logfile}")) - unlink("{$ntpd_logfile}"); +// exec("killall syslogd"); +// sleep(1); +// if(file_exists("{$ntpd_logfile}")) +// unlink("{$ntpd_logfile}"); exec("/usr/sbin/fifolog_create -s 511488 {$ntpd_logfile}"); - exec("/bin/date | /usr/sbin/fifolog_writer {$ntpd_logfile}"); - system_syslogd_start(); + exec("/usr/bin/killall -HUP syslogd"); } } |