mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use unlink()
This commit is contained in:
parent
783cdcaaa7
commit
bb89e5d075
@ -55,7 +55,7 @@ if ($_POST['clear']) {
|
||||
} else {
|
||||
exec("killall syslogd");
|
||||
if(file_exists("{$system_logfile}"))
|
||||
unlink_file("{$system_logfile}");
|
||||
unlink("{$system_logfile}");
|
||||
exec("/usr/sbin/fifolog_create -s 511488 {$system_logfile}");
|
||||
system_syslogd_start();
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ if ($_POST['clear']) {
|
||||
} else {
|
||||
exec("killall syslogd");
|
||||
if(file_exists("{$portal_logfile}"))
|
||||
unlink_file("{$portal_logfile}");
|
||||
unlink("{$portal_logfile}");
|
||||
exec("/usr/sbin/fifolog_create -s 511488 {$portal_logfile}");
|
||||
}
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ if ($_POST['clear']) {
|
||||
} else {
|
||||
exec("killall syslogd");
|
||||
if(file_exists("{$dhcpd_logfile}"))
|
||||
unlink_file("{$dhcpd_logfile}");
|
||||
unlink("{$dhcpd_logfile}");
|
||||
exec("/usr/sbin/fifolog_create -s 511488 {$dhcpd_logfile}");
|
||||
}
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ if ($_POST['clear']) {
|
||||
} else {
|
||||
exec("killall syslogd");
|
||||
if(file_exists("{$filter_logfile}")
|
||||
unlink_file("{$filter_logfile}");
|
||||
unlink("{$filter_logfile}");
|
||||
exec("/usr/sbin/fifolog_create -s 511488 {$filter_logfile}");
|
||||
system_syslogd_start();
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ if ($_POST['clear']) {
|
||||
} else {
|
||||
exec("killall syslogd");
|
||||
if(file_exists("{$filter_logfile}")
|
||||
unlink_file("{$filter_logfile}");
|
||||
unlink("{$filter_logfile}");
|
||||
exec("/usr/sbin/fifolog_create -s 511488 {$filter_logfile}");
|
||||
system_syslogd_start();
|
||||
}
|
||||
|
||||
@ -69,7 +69,7 @@ if ($_POST['clear']) {
|
||||
} else {
|
||||
exec("killall syslogd");
|
||||
if(file_exists("{$ipsec_logfile}")
|
||||
unlink_file("{$ipsec_logfile}");
|
||||
unlink("{$ipsec_logfile}");
|
||||
exec("/usr/sbin/fifolog_create -s 511488 {$ipsec_logfile}");
|
||||
system_syslogd_start();
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ if ($_POST['clear']) {
|
||||
} else {
|
||||
exec("killall syslogd");
|
||||
if(file_exists("{$ntpd_logfile}"))
|
||||
unlink_file("{$ntpd_logfile}");
|
||||
unlink("{$ntpd_logfile}");
|
||||
exec("/usr/sbin/fifolog_create -s 511488 {$ntpd_logfile}");
|
||||
system_syslogd_start();
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ if ($_POST['clear']) {
|
||||
} else {
|
||||
exec("killall syslogd");
|
||||
if(file_exists("{$openvpn_logfile}"))
|
||||
unlink_file("{$openvpn_logfile}");
|
||||
unlink("{$openvpn_logfile}");
|
||||
exec("/usr/sbin/fifolog_create -s 262144 {$openvpn_logfile}");
|
||||
system_syslogd_start();
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ if ($_POST['clear']) {
|
||||
} else {
|
||||
exec("killall syslogd");
|
||||
if(file_exists("{$relayd_logfile}"))
|
||||
unlink_file("{$relayd_logfile}");
|
||||
unlink("{$relayd_logfile}");
|
||||
exec("/usr/sbin/fifolog_create -s 511488 {$relayd_logfile}");
|
||||
system_syslogd_start();
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ if ($_POST['clear']) {
|
||||
} else {
|
||||
exec("killall syslogd");
|
||||
if(file_exists("{$slbd_logfile}"))
|
||||
unlink_file("{$slbd_logfile}");
|
||||
unlink("{$slbd_logfile}");
|
||||
exec("/usr/sbin/fifolog_create -s 511488 {$slbd_logfile}");
|
||||
system_syslogd_start();
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ if ($_POST['clear']) {
|
||||
} else {
|
||||
exec("killall syslogd");
|
||||
if(file_exists("/var/log/vpn.log"))
|
||||
unlink_file("/var/log/vpn.log");
|
||||
unlink("/var/log/vpn.log");
|
||||
exec("/usr/sbin/fifolog_create -s 50688 /var/log/vpn.log");
|
||||
}
|
||||
/* redirect to avoid reposting form data on refresh */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user