diff options
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"); } } |