Revision 17e3db6f
Added by Scott Ullrich over 16 years ago
usr/local/www/diag_logs.php | ||
---|---|---|
54 | 54 |
system_syslogd_start(); |
55 | 55 |
} else { |
56 | 56 |
exec("killall syslogd"); |
57 |
sleep(1); |
|
57 | 58 |
if(file_exists("{$system_logfile}")) |
58 | 59 |
unlink("{$system_logfile}"); |
59 | 60 |
exec("/usr/sbin/fifolog_create -s 511488 {$system_logfile}"); |
usr/local/www/diag_logs_auth.php | ||
---|---|---|
50 | 50 |
touch($portal_logfile); |
51 | 51 |
} else { |
52 | 52 |
exec("killall syslogd"); |
53 |
sleep(1); |
|
53 | 54 |
if(file_exists("{$portal_logfile}")) |
54 | 55 |
unlink("{$portal_logfile}"); |
55 | 56 |
exec("/usr/sbin/fifolog_create -s 511488 {$portal_logfile}"); |
usr/local/www/diag_logs_dhcp.php | ||
---|---|---|
52 | 52 |
touch($dhcpd_logfile); |
53 | 53 |
} else { |
54 | 54 |
exec("killall syslogd"); |
55 |
sleep(1); |
|
55 | 56 |
if(file_exists("{$dhcpd_logfile}")) |
56 | 57 |
unlink("{$dhcpd_logfile}"); |
57 | 58 |
exec("/usr/sbin/fifolog_create -s 511488 {$dhcpd_logfile}"); |
usr/local/www/diag_logs_filter.php | ||
---|---|---|
61 | 61 |
touch("/var/log/filter.log"); |
62 | 62 |
} else { |
63 | 63 |
exec("killall syslogd"); |
64 |
sleep(1); |
|
64 | 65 |
if(file_exists("{$filter_logfile}")) |
65 | 66 |
unlink("{$filter_logfile}"); |
66 | 67 |
exec("/usr/sbin/fifolog_create -s 511488 {$filter_logfile}"); |
usr/local/www/diag_logs_filter_dynamic.php | ||
---|---|---|
53 | 53 |
touch("/var/log/filter.log"); |
54 | 54 |
} else { |
55 | 55 |
exec("killall syslogd"); |
56 |
sleep(1); |
|
56 | 57 |
if(file_exists("{$filter_logfile}") |
57 | 58 |
unlink("{$filter_logfile}"); |
58 | 59 |
exec("/usr/sbin/fifolog_create -s 511488 {$filter_logfile}"); |
usr/local/www/diag_logs_ipsec.php | ||
---|---|---|
68 | 68 |
touch($ipsec_logfile); |
69 | 69 |
} else { |
70 | 70 |
exec("killall syslogd"); |
71 |
sleep(1); |
|
71 | 72 |
if(file_exists("{$ipsec_logfile}")) |
72 | 73 |
unlink("{$ipsec_logfile}"); |
73 | 74 |
exec("/usr/sbin/fifolog_create -s 511488 {$ipsec_logfile}"); |
usr/local/www/diag_logs_ntpd.php | ||
---|---|---|
50 | 50 |
touch($ntpd_logfile); |
51 | 51 |
} else { |
52 | 52 |
exec("killall syslogd"); |
53 |
sleep(1); |
|
53 | 54 |
if(file_exists("{$ntpd_logfile}")) |
54 | 55 |
unlink("{$ntpd_logfile}"); |
55 | 56 |
exec("/usr/sbin/fifolog_create -s 511488 {$ntpd_logfile}"); |
usr/local/www/diag_logs_openvpn.php | ||
---|---|---|
55 | 55 |
touch($openvpn_logfile); |
56 | 56 |
} else { |
57 | 57 |
exec("killall syslogd"); |
58 |
sleep(1); |
|
58 | 59 |
if(file_exists("{$openvpn_logfile}")) |
59 | 60 |
unlink("{$openvpn_logfile}"); |
60 | 61 |
exec("/usr/sbin/fifolog_create -s 262144 {$openvpn_logfile}"); |
usr/local/www/diag_logs_relayd.php | ||
---|---|---|
51 | 51 |
touch($relayd_logfile); |
52 | 52 |
} else { |
53 | 53 |
exec("killall syslogd"); |
54 |
sleep(1); |
|
54 | 55 |
if(file_exists("{$relayd_logfile}")) |
55 | 56 |
unlink("{$relayd_logfile}"); |
56 | 57 |
exec("/usr/sbin/fifolog_create -s 511488 {$relayd_logfile}"); |
usr/local/www/diag_logs_slbd.php | ||
---|---|---|
51 | 51 |
touch($slbd_logfile); |
52 | 52 |
} else { |
53 | 53 |
exec("killall syslogd"); |
54 |
sleep(1); |
|
54 | 55 |
if(file_exists("{$slbd_logfile}")) |
55 | 56 |
unlink("{$slbd_logfile}"); |
56 | 57 |
exec("/usr/sbin/fifolog_create -s 511488 {$slbd_logfile}"); |
usr/local/www/diag_logs_vpn.php | ||
---|---|---|
50 | 50 |
touch("/var/log/vpn.log"); |
51 | 51 |
} else { |
52 | 52 |
exec("killall syslogd"); |
53 |
sleep(1); |
|
53 | 54 |
if(file_exists("/var/log/vpn.log")) |
54 | 55 |
unlink("/var/log/vpn.log"); |
55 | 56 |
exec("/usr/sbin/fifolog_create -s 50688 /var/log/vpn.log"); |
Also available in: Unified diff
Add sleep() after killing syslogd