From: Venkatasainath Ravikanti <[email protected]>
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 <[email protected]>
Assisted-by: Kiro:claude-sonnet-4
---
.../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 851bf252b..bb8784d31 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 <[email protected]>)
@@ -8,11 +8,10 @@
# Only change is to add dns_cache(no) to options to suppress
initialization warning.
#
# Joe Slater <[email protected]>
-
# 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 70afd0da8..a25acf889 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 <[email protected]>
-
# 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$");
};
########################
--
2.54.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#127981):
https://lists.openembedded.org/g/openembedded-devel/message/127981
Mute This Topic: https://lists.openembedded.org/mt/120052981/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-