diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-18 22:02:32 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-18 22:02:32 +0000 |
commit | fd31e9ee0f5068f852552dfd77f1010614d7c129 (patch) | |
tree | 4704f8c6511671f45bdd4c55e22afbea96e0a281 | |
parent | 8b1eb3d83e61433abed754e2ee97c2d906881e0d (diff) | |
download | pfsense-fd31e9ee0f5068f852552dfd77f1010614d7c129.zip pfsense-fd31e9ee0f5068f852552dfd77f1010614d7c129.tar.gz |
Correctly start/stop syslogd
-rwxr-xr-x | usr/local/www/diag_logs_settings.php | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/usr/local/www/diag_logs_settings.php b/usr/local/www/diag_logs_settings.php index 0bc54da..6350695 100755 --- a/usr/local/www/diag_logs_settings.php +++ b/usr/local/www/diag_logs_settings.php @@ -77,17 +77,16 @@ if ($_POST) { $oldnologdefaultblock = isset($config['syslog']['nologdefaultblock']); $config['syslog']['nologdefaultblock'] = $_POST['logdefaultblock'] ? false : true; $config['syslog']['rawfilter'] = $_POST['rawfilter'] ? true : false; - + write_config(); - + $retval = 0; - if (!file_exists($d_sysrebootreqd_path)) { - config_lock(); - $retval = system_syslogd_start(); - if ($oldnologdefaultblock !== isset($config['syslog']['nologdefaultblock'])) - $retval |= filter_configure(); - config_unlock(); - } + config_lock(); + $retval = system_syslogd_start(); + if ($oldnologdefaultblock !== isset($config['syslog']['nologdefaultblock'])) + $retval |= filter_configure(); + config_unlock(); + $savemsg = get_std_save_message($retval); } } |