summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_openvpn.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/diag_logs_openvpn.php')
-rw-r--r--usr/local/www/diag_logs_openvpn.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/usr/local/www/diag_logs_openvpn.php b/usr/local/www/diag_logs_openvpn.php
index f157266..fe1bafe 100644
--- a/usr/local/www/diag_logs_openvpn.php
+++ b/usr/local/www/diag_logs_openvpn.php
@@ -54,13 +54,12 @@ if ($_POST['clear']) {
unlink($openvpn_logfile);
touch($openvpn_logfile);
} else {
- exec("killall syslogd");
- sleep(1);
- if(file_exists("{$openvpn_logfile}"))
- unlink("{$openvpn_logfile}");
+// exec("killall syslogd");
+// sleep(1);
+// if(file_exists("{$openvpn_logfile}"))
+// unlink("{$openvpn_logfile}");
exec("/usr/sbin/fifolog_create -s 262144 {$openvpn_logfile}");
- exec("/bin/date | /usr/sbin/fifolog_writer {$openvpn_logfile}");
- system_syslogd_start();
+ exec("/usr/bin/killall -HUP syslogd");
}
}
OpenPOWER on IntegriCloud