Fix syslog-ng start at boot

syslog-ng fails to start because of the following warning:

[2021-11-27T13:39:13.309682] Error checking the uniqueness of the persist names,
please override it with persist-name option. Shutting down.
persist_name='affile_dd_writers(/var/log/daemon.log)',
location='/etc/syslog-ng/conf.d/slapd.conf:2:30'

This change only applies to Debian.

Booted image with fix applied and syslog-ng was succesfully started.

Story: 2009101
Task: 44077

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I3ba0c3cf5670e0a840d8908648ef01958dbbd22a
This commit is contained in:
Charles Short 2021-11-27 08:48:50 -05:00
parent 1ef140da13
commit 2646eb4b6d

View File

@ -1,5 +1,5 @@
# slapd log destination
destination d_daemon_slapd { file("/var/log/daemon.log" template(t_preformatted)); };
destination d_daemon_slapd { file("/var/log/daemon.log" persist-name("slapd") template(t_preformatted)); };
# slapd log filters
filter f_slapd { facility(local4) and program(slapd); };