From bd961c65906fe2f2c6aec4324dc3268d31aab1b7 Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 20 Aug 2010 14:37:34 -0400 Subject: Fixes #831. Restart the DHCP daemon when clearing the log file. --- usr/local/www/diag_logs_dhcp.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'usr/local/www/diag_logs_dhcp.php') diff --git a/usr/local/www/diag_logs_dhcp.php b/usr/local/www/diag_logs_dhcp.php index ffc51c4..438f7bb 100755 --- a/usr/local/www/diag_logs_dhcp.php +++ b/usr/local/www/diag_logs_dhcp.php @@ -50,8 +50,11 @@ $nentries = $config['syslog']['nentries']; if (!$nentries) $nentries = 50; -if ($_POST['clear']) +if ($_POST['clear']) { clear_log_file($dhcpd_logfile); + killbyname("dhcpd"); + services_dhcpd_configure(); +} $pgtitle = array(gettext("Status"),gettext("System logs"),gettext("DHCP")); include("head.inc"); @@ -88,7 +91,8 @@ include("head.inc");
- "> + "> + NOTE: Clearing the log file will restart the DHCP daemon.
-- cgit v1.1