English Forums > Development and Code Review

pluginctl -s syslogd restart overwrites /var/etc/syslog.conf

(1/1)

dgktkr:
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.

xpac:
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
--- Code: ---/usr/local/etc/inc/system.inc
--- End code ---
contains a function named
--- Code: ---system_syslogd_start
--- End code ---
, 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...

Navigation

[0] Message Index

Go to full version