Commit bdef8691 authored by Franco Fichtner's avatar Franco Fichtner

system: move template generation to a place that allows...

runtime regeneration.  Not pretty, but better than triggering it
only once on bootup.  More clog -> newsyslog migration to be done
soon.

Discussed with: ad@
parent cdb3fe97
...@@ -623,6 +623,9 @@ function system_syslogd_start() ...@@ -623,6 +623,9 @@ function system_syslogd_start()
{ {
global $config, $g; global $config, $g;
/* XXX temporary hook for newsyslog.conf regeneration */
configd_run('template reload OPNsense.Syslog');
mwexec('/etc/rc.d/hostid start'); mwexec('/etc/rc.d/hostid start');
$syslogcfg = $config['syslog']; $syslogcfg = $config['syslog'];
......
...@@ -186,7 +186,6 @@ system_hosts_generate(); ...@@ -186,7 +186,6 @@ system_hosts_generate();
interfaces_loopback_configure(); interfaces_loopback_configure();
/* start syslogd */ /* start syslogd */
configd_run("template reload OPNsense.Syslog");
system_syslogd_start(); system_syslogd_start();
echo "Starting Secure Shell Services..."; echo "Starting Secure Shell Services...";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment