Syslog: make sure to start/stop the correct syslog facility, detach reconfiguration in rc.configure_plugins for https://github.com/opnsense/core/issues/4397

This commit is contained in:
Ad Schellevis 2020-10-23 10:00:38 +02:00
parent 5ebce0d8ac
commit f6865ddffb
2 changed files with 8 additions and 5 deletions

View File

@ -42,7 +42,10 @@ $script = !empty($argv[1]) ? $argv[1] : 'POST_INSTALL';
/* reload subsystem that may have changed */
if ($script == 'POST_INSTALL') {
system_syslogd_start(true);
echo 'Configuring system logging...';
flush();
configd_run("syslog restart");
echo "done.\n";
}
/* flush user-facing caches */

View File

@ -5,25 +5,25 @@ type:script_output
message:list syslog applications
[start]
command:/usr/local/sbin/pluginctl -s syslogd restart
command:/usr/local/sbin/pluginctl -s syslog-ng restart
parameters:
type:script
message:starting syslog
[stop]
command:/usr/local/sbin/pluginctl -s syslogd stop
command:/usr/local/sbin/pluginctl -s syslog-ng stop
parameters:
type:script
message:stopping syslog
[restart]
command:/usr/local/sbin/pluginctl -s syslogd restart
command:/usr/local/sbin/pluginctl -s syslog-ng restart
parameters:
type:script
message:restarting syslog
[reload]
command:/usr/local/sbin/pluginctl -s syslogd restart
command:/usr/local/sbin/pluginctl -s syslog-ng restart
parameters:
type:script
message:reload syslog