summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/diag_logs_auth.php')
-rwxr-xr-xusr/local/www/diag_logs_auth.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/diag_logs_auth.php b/usr/local/www/diag_logs_auth.php
index 775419a..2c48e42 100755
--- a/usr/local/www/diag_logs_auth.php
+++ b/usr/local/www/diag_logs_auth.php
@@ -36,7 +36,6 @@
##|*MATCH=diag_logs_auth.php*
##|-PRIV
-
require("guiconfig.inc");
$portal_logfile = "{$g['varlog_path']}/portalauth.log";
@@ -50,6 +49,9 @@ if ($_POST['clear']) {
unlink($portal_logfile);
touch($portal_logfile);
} else {
+ exec("killall syslogd");
+ if(file_exists("{$portal_logfile}"))
+ unlink_file("{$portal_logfile}");
exec("/usr/sbin/fifolog_create -s 511488 {$portal_logfile}");
}
}
OpenPOWER on IntegriCloud