"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/etc/inc/system.inc" between
opnsense-core-20.7.4.tar.gz and opnsense-core-20.7.5.tar.gz

About: OPNsense core system (GUI, API and systems backend) of the FreeBSD based firewall and routing platform.

system.inc  (opnsense-core-20.7.4):system.inc  (opnsense-core-20.7.5)
skipping to change at line 586 skipping to change at line 586
if (!is_dir($logdir)) { if (!is_dir($logdir)) {
/* create if needed to avoid startup error */ /* create if needed to avoid startup error */
mwexecf('/bin/mkdir -p %s', $logdir); mwexecf('/bin/mkdir -p %s', $logdir);
} }
/* emit extra args for syslogd invoke */ /* emit extra args for syslogd invoke */
return exec_safe('-l %s ', $logsocket); return exec_safe('-l %s ', $logsocket);
} }
function system_syslogd_start($verbose = false, $restart = false) function system_syslogd_start($verbose = false, $restart = false, $async = false )
{ {
global $config; global $config;
if ($verbose) { if ($verbose) {
echo 'Configuring system logging...'; echo 'Configuring system logging...';
flush(); flush();
} }
if ($async) {
configd_run('syslog restart');
if ($verbose) {
echo "done.\n";
}
return;
}
configd_run('template reload OPNsense/Syslog'); configd_run('template reload OPNsense/Syslog');
if (empty($config['syslog']['disable_clog'])) { if (empty($config['syslog']['disable_clog'])) {
$syslogcfg = config_read_array('syslog'); $syslogcfg = config_read_array('syslog');
$log_directive = '%'; $log_directive = '%';
$syslogd_extra = ''; $syslogd_extra = '';
$syslogconf = ''; $syslogconf = '';
 End of changes. 3 change blocks. 
1 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)