diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-16 16:33:06 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-16 16:33:06 +0000 |
commit | 929d48cbf2f53575b8d7917140359dd04306b495 (patch) | |
tree | 58b7e48da6edf7f27cbf6261064841b9039e31a6 /usr | |
parent | 62ce3b9a8b36405f53e94205da982311e3eb55a5 (diff) | |
download | pfsense-929d48cbf2f53575b8d7917140359dd04306b495.zip pfsense-929d48cbf2f53575b8d7917140359dd04306b495.tar.gz |
Restart syslgod after clogging
Ticket #362
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/diag_logs.php | 2 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 2 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_ipsec.php | 2 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_slbd.php | 2 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_vpn.php | 2 |
5 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/www/diag_logs.php b/usr/local/www/diag_logs.php index cde7ebe..183a11b 100755 --- a/usr/local/www/diag_logs.php +++ b/usr/local/www/diag_logs.php @@ -41,7 +41,9 @@ if (!$nentries) $nentries = 50; if ($_POST['clear']) { + exec("killall syslogd"); exec("/usr/sbin/clog -i -s 262144 {$system_logfile}"); + system_syslogd_start(); } $pgtitle = "Diagnostics: System logs: System"; diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index 273defd..da8e613 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -40,7 +40,9 @@ if (!$nentries) $nentries = 50; if ($_POST['clear']) { + exec("killall syslogd"); exec("/usr/sbin/clog -i -s 262144 /var/log/filter.log"); + system_syslogd_start(); } /* format filter logs */ diff --git a/usr/local/www/diag_logs_ipsec.php b/usr/local/www/diag_logs_ipsec.php index 3862ca5..98b8c64 100755 --- a/usr/local/www/diag_logs_ipsec.php +++ b/usr/local/www/diag_logs_ipsec.php @@ -41,7 +41,9 @@ if (!$nentries) $nentries = 50; if ($_POST['clear']) { + exec("killall syslogd"); exec("/usr/sbin/clog -i -s 262144 {$ipsec_logfile}"); + system_syslogd_start(); } $pgtitle = "Diagnostics: System logs: IPSEC VPN"; diff --git a/usr/local/www/diag_logs_slbd.php b/usr/local/www/diag_logs_slbd.php index 0fe9833..8c1e2a5 100755 --- a/usr/local/www/diag_logs_slbd.php +++ b/usr/local/www/diag_logs_slbd.php @@ -40,7 +40,9 @@ if (!$nentries) $nentries = 50; if ($_POST['clear']) { + exec("killall syslogd"); exec("/usr/sbin/clog -i -s 262144 {$slbd_logfile}"); + system_syslogd_start(); } $pgtitle = "Diagnostics: System logs: Load Balancer"; diff --git a/usr/local/www/diag_logs_vpn.php b/usr/local/www/diag_logs_vpn.php index 4abbd47..a754b3c 100755 --- a/usr/local/www/diag_logs_vpn.php +++ b/usr/local/www/diag_logs_vpn.php @@ -41,7 +41,9 @@ if (!$nentries) $nentries = 50; if ($_POST['clear']) { + exec("killall syslogd"); exec("/usr/sbin/clog -i -s 262144 /var/log/vpn.log"); + system_syslogd_start(); } $pgtitle = "Diagnostics: System logs: PPTP VPN"; |