From 32c83597c225e57d1443ab58f1db09540c38fb2f Mon Sep 17 00:00:00 2001 From: Venkatasainath Ravikanti Date: Tue, 30 Jun 2026 18:29:00 +0000 Subject: [PATCH] syslog-ng: update config version to match installed binary syslog-ng 4.6.0 ships with Config version 4.2, but the configuration files still declare @version: 3.36. This causes two warnings at startup: WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode WARNING: Your configuration file uses an obsoleted keyword Update the @version to 4.2 to match the binary's config version. Also replace the deprecated stats_freq() option with the modern stats(freq()) syntax, and add @include "scl.conf" for the systemd config to align with current upstream recommendations. These changes mirror what was done in fee12741695f ("syslog-ng: upgrade 4.7.0 -> 4.8.1") for the master branch, adapted for the 4.6.0 version on scarthgap. Signed-off-by: Venkatasainath Ravikanti Assisted-by: Kiro:claude-sonnet-4 Signed-off-by: Anuj Mittal --- .../syslog-ng/files/syslog-ng.conf.systemd | 11 +++++------ .../syslog-ng/files/syslog-ng.conf.sysvinit | 9 ++++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.systemd b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.systemd index 851bf252b7..bb8784d31a 100644 --- a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.systemd +++ b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.systemd @@ -1,5 +1,5 @@ -@version: 3.36 -# +@version: 4.2 +@include "scl.conf" # Syslog-ng configuration file, compatible with default Debian syslogd # installation. Originally written by anonymous (I can't find his name) # Revised, and rewrited by me (SZALAY Attila ) @@ -8,11 +8,10 @@ # Only change is to add dns_cache(no) to options to suppress initialization warning. # # Joe Slater - # First, set some global options. -options { chain_hostnames(off); flush_lines(0); use_dns(no); dns_cache(no); use_fqdn(no); - owner("root"); group("adm"); perm(0640); stats_freq(0); - bad_hostname("^gconfd$"); +options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no); + dns_cache(no); owner("root"); group("adm"); perm(0640); + stats(freq(0)); bad_hostname("^gconfd$"); }; ######################## diff --git a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.sysvinit b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.sysvinit index 70afd0da84..a25acf8898 100644 --- a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.sysvinit +++ b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.sysvinit @@ -1,4 +1,4 @@ -@version: 3.36 +@version: 4.2 # # Syslog-ng configuration file, compatible with default Debian syslogd # installation. Originally written by anonymous (I can't find his name) @@ -8,11 +8,10 @@ # Only change is to add dns_cache(no) to options to suppress initialization warning. # # Joe Slater - # First, set some global options. -options { chain_hostnames(off); flush_lines(0); use_dns(no); dns_cache(no); use_fqdn(no); - owner("root"); group("adm"); perm(0640); stats_freq(0); - bad_hostname("^gconfd$"); +options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no); + dns_cache(no); owner("root"); group("adm"); perm(0640); + stats(freq(0)); bad_hostname("^gconfd$"); }; ########################