summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_ntpd.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/diag_logs_ntpd.php')
-rw-r--r--usr/local/www/diag_logs_ntpd.php15
1 files changed, 2 insertions, 13 deletions
diff --git a/usr/local/www/diag_logs_ntpd.php b/usr/local/www/diag_logs_ntpd.php
index 57a9aae..3674813 100644
--- a/usr/local/www/diag_logs_ntpd.php
+++ b/usr/local/www/diag_logs_ntpd.php
@@ -44,19 +44,8 @@ $nentries = $config['syslog']['nentries'];
if (!$nentries)
$nentries = 50;
-if ($_POST['clear']) {
- if(isset($config['system']['disablesyslogclog'])) {
- unlink($ntpd_logfile);
- touch($ntpd_logfile);
- } else {
-// exec("killall syslogd");
-// sleep(1);
-// if(file_exists("{$ntpd_logfile}"))
-// unlink("{$ntpd_logfile}");
- exec("/usr/sbin/fifolog_create -s 511488 {$ntpd_logfile}");
- exec("/usr/bin/killall -HUP syslogd");
- }
-}
+if ($_POST['clear'])
+ clear_log_file($ntpd_logfile);
$pgtitle = array("Status","System logs","OpenNTPD");
include("head.inc");
OpenPOWER on IntegriCloud