OPNsense Forum
English Forums => Development and Code Review => Topic started by: dgktkr on November 20, 2019, 09:46:04 pm
-
Hi,
Noob here. I'm trying explore syslog capabilities in 20.1 (with FreeBSD 12.1) by editing /var/etc/syslog.conf and restarting the service. The problem is that the restart rewrites syslog.conf and wipes out the modifications.
Where can I put edits so that they survive a restart? I've looked through various /etc rc files and I can't find where rewriting the conf file is implemented.
FWIW plain FreeBSD 12.1 doesn't seem to do that to /etc/syslog.conf.
-
Did you ever figure this out? Also looking to implement some forwarding here...
Found it, documenting here as it was the first google result for my issue:
The file /usr/local/etc/inc/system.inc
contains a function named system_syslogd_start
, the file is defined and written there. I dont' have any idea yet how to change it so that it survives an OPNsense update, so...