mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
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:
parent
5ebce0d8ac
commit
f6865ddffb
@ -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 */
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user