diff options
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/diag_logs.php | 1 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_auth.php | 1 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_dhcp.php | 1 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 1 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_filter_dynamic.php | 1 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_ipsec.php | 1 | ||||
-rw-r--r-- | usr/local/www/diag_logs_ntpd.php | 1 | ||||
-rw-r--r-- | usr/local/www/diag_logs_openvpn.php | 1 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_relayd.php | 1 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_slbd.php | 1 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_vpn.php | 1 |
11 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/diag_logs.php b/usr/local/www/diag_logs.php index 6463139..47481b0 100755 --- a/usr/local/www/diag_logs.php +++ b/usr/local/www/diag_logs.php @@ -54,6 +54,7 @@ if ($_POST['clear']) { system_syslogd_start(); } else { exec("killall syslogd"); + sleep(1); if(file_exists("{$system_logfile}")) unlink("{$system_logfile}"); exec("/usr/sbin/fifolog_create -s 511488 {$system_logfile}"); diff --git a/usr/local/www/diag_logs_auth.php b/usr/local/www/diag_logs_auth.php index e4daf4e..c8b899b 100755 --- a/usr/local/www/diag_logs_auth.php +++ b/usr/local/www/diag_logs_auth.php @@ -50,6 +50,7 @@ if ($_POST['clear']) { touch($portal_logfile); } else { exec("killall syslogd"); + sleep(1); if(file_exists("{$portal_logfile}")) unlink("{$portal_logfile}"); exec("/usr/sbin/fifolog_create -s 511488 {$portal_logfile}"); diff --git a/usr/local/www/diag_logs_dhcp.php b/usr/local/www/diag_logs_dhcp.php index 71bd8a1..a648690 100755 --- a/usr/local/www/diag_logs_dhcp.php +++ b/usr/local/www/diag_logs_dhcp.php @@ -52,6 +52,7 @@ if ($_POST['clear']) { touch($dhcpd_logfile); } else { exec("killall syslogd"); + sleep(1); if(file_exists("{$dhcpd_logfile}")) unlink("{$dhcpd_logfile}"); exec("/usr/sbin/fifolog_create -s 511488 {$dhcpd_logfile}"); diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index 8d9f46a..6918a2b 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -61,6 +61,7 @@ if ($_POST['clear']) { touch("/var/log/filter.log"); } else { exec("killall syslogd"); + sleep(1); if(file_exists("{$filter_logfile}")) unlink("{$filter_logfile}"); exec("/usr/sbin/fifolog_create -s 511488 {$filter_logfile}"); diff --git a/usr/local/www/diag_logs_filter_dynamic.php b/usr/local/www/diag_logs_filter_dynamic.php index 987ab1b..23cc1fd 100755 --- a/usr/local/www/diag_logs_filter_dynamic.php +++ b/usr/local/www/diag_logs_filter_dynamic.php @@ -53,6 +53,7 @@ if ($_POST['clear']) { touch("/var/log/filter.log"); } else { exec("killall syslogd"); + sleep(1); if(file_exists("{$filter_logfile}") unlink("{$filter_logfile}"); exec("/usr/sbin/fifolog_create -s 511488 {$filter_logfile}"); diff --git a/usr/local/www/diag_logs_ipsec.php b/usr/local/www/diag_logs_ipsec.php index 1cc6c59..54b9626 100755 --- a/usr/local/www/diag_logs_ipsec.php +++ b/usr/local/www/diag_logs_ipsec.php @@ -68,6 +68,7 @@ if ($_POST['clear']) { touch($ipsec_logfile); } else { exec("killall syslogd"); + sleep(1); if(file_exists("{$ipsec_logfile}")) unlink("{$ipsec_logfile}"); exec("/usr/sbin/fifolog_create -s 511488 {$ipsec_logfile}"); diff --git a/usr/local/www/diag_logs_ntpd.php b/usr/local/www/diag_logs_ntpd.php index da325cf..3a3c041 100644 --- a/usr/local/www/diag_logs_ntpd.php +++ b/usr/local/www/diag_logs_ntpd.php @@ -50,6 +50,7 @@ if ($_POST['clear']) { 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}"); diff --git a/usr/local/www/diag_logs_openvpn.php b/usr/local/www/diag_logs_openvpn.php index 21612a4..b26c3c8 100644 --- a/usr/local/www/diag_logs_openvpn.php +++ b/usr/local/www/diag_logs_openvpn.php @@ -55,6 +55,7 @@ if ($_POST['clear']) { touch($openvpn_logfile); } else { exec("killall syslogd"); + sleep(1); if(file_exists("{$openvpn_logfile}")) unlink("{$openvpn_logfile}"); exec("/usr/sbin/fifolog_create -s 262144 {$openvpn_logfile}"); diff --git a/usr/local/www/diag_logs_relayd.php b/usr/local/www/diag_logs_relayd.php index f29246d..5bb6c51 100755 --- a/usr/local/www/diag_logs_relayd.php +++ b/usr/local/www/diag_logs_relayd.php @@ -51,6 +51,7 @@ if ($_POST['clear']) { touch($relayd_logfile); } else { exec("killall syslogd"); + sleep(1); if(file_exists("{$relayd_logfile}")) unlink("{$relayd_logfile}"); exec("/usr/sbin/fifolog_create -s 511488 {$relayd_logfile}"); diff --git a/usr/local/www/diag_logs_slbd.php b/usr/local/www/diag_logs_slbd.php index 28dead5..a7a3a68 100755 --- a/usr/local/www/diag_logs_slbd.php +++ b/usr/local/www/diag_logs_slbd.php @@ -51,6 +51,7 @@ if ($_POST['clear']) { touch($slbd_logfile); } else { exec("killall syslogd"); + sleep(1); if(file_exists("{$slbd_logfile}")) unlink("{$slbd_logfile}"); exec("/usr/sbin/fifolog_create -s 511488 {$slbd_logfile}"); diff --git a/usr/local/www/diag_logs_vpn.php b/usr/local/www/diag_logs_vpn.php index 1a552bd..3fccad3 100755 --- a/usr/local/www/diag_logs_vpn.php +++ b/usr/local/www/diag_logs_vpn.php @@ -50,6 +50,7 @@ if ($_POST['clear']) { touch("/var/log/vpn.log"); } else { exec("killall syslogd"); + sleep(1); if(file_exists("/var/log/vpn.log")) unlink("/var/log/vpn.log"); exec("/usr/sbin/fifolog_create -s 50688 /var/log/vpn.log"); |