syslog-ng: adjust control socket location
PATCH 1/1 syslog-ng: adjust control socket location
From: Ovidiu Panait <[email protected]>
Commit [1] changed the pidfile dir to /var/run/syslog-ng. This also changed the location where the control socket is searched for, causing the following error with systemd:
root@qemux86-64:~# syslog-ng-ctl config Error connecting control socket, socket='/var/run/syslog-ng/syslog-ng.ctl', error='No such file or directory'
Update the systemd service file to point to the new location.
[1] 00d1d63e4f7f ("syslog-ng: provide correct PID directory location to restart/stop syslog-ng daemon")
---
This has already been backported to the hardknott branch, but is missing in honister...
.../files/syslog-ng.service-the-syslog-ng-service.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch +1 -1
@@ -38,7 +38,7 @@ index 0ccc2b9..7f08c0e 100644 -CONTROL_FILE=/var/run/syslog-ng.ctl -PID_FILE=/var/run/syslog-ng.pid +PERSIST_FILE=@LOCALSTATEDIR@/lib/syslog-ng/syslog-ng.persist -+CONTROL_FILE=@LOCALSTATEDIR@/lib/syslog-ng/syslog-ng.ctl ++CONTROL_FILE=@LOCALSTATEDIR@/run/syslog-ng/syslog-ng.ctl +PID_FILE=@LOCALSTATEDIR@/run/syslog-ng.pid OTHER_OPTIONS="--enable-core" --
this is already applied in master via b57d824fdf822a4c3fdb153b92063f88705e3a6b
Quoted 50 lines · Peter Kjellerstedt
From: Ovidiu Panait <[email protected]>
Commit [1] changed the pidfile dir to
/var/run/syslog-ng. This also changed the location where the control socket is searched for, causing the following error with systemd:root@qemux86-64:~# syslog-ng-ctl config Error connecting control socket, socket='/var/run/syslog-ng/syslog-ng.ctl', error='No such file or directory'Update the systemd service file to point to the new location.
[1]
00d1d63e4f7f("syslog-ng: provide correct PID directory location to restart/stop syslog-ng daemon")Signed-off-by lmorales <[email protected]>Signed-off-by Ovidiu Panait <[email protected]>Signed-off-by Khem Raj <[email protected]>Signed-off-by Peter Kjellerstedt <[email protected]>---
This has already been backported to the hardknott branch, but is missing in honister...
.../files/syslog-ng.service-the-syslog-ng-service.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch +1
-2@@ -38,7 +38,7 @@ index 0ccc2b9..7f08c0e 100644 -CONTROL_FILE=/var/run/syslog-ng.ctl -PID_FILE=/var/run/syslog-ng.pid +PERSIST_FILE=@LOCALSTATEDIR@/lib/syslog-ng/syslog-ng.persist -+CONTROL_FILE=@LOCALSTATEDIR@/lib/syslog-ng/syslog-ng.ctl ++CONTROL_FILE=@LOCALSTATEDIR@/run/syslog-ng/syslog-ng.ctl +PID_FILE=@LOCALSTATEDIR@/run/syslog-ng.pid OTHER_OPTIONS="--enable-core" -- -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#95367): https://lists.openembedded.org/g/openembedded-devel/message/95367
Mute This Topic: https://lists.openembedded.org/mt/89223977/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 11 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Khem Raj
Sent: den 18 februari 2022 03:19
To: Peter Kjellerstedt <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-oe][PATCH] syslog-ng: adjust control socket locationthis is already applied in master via
b57d824fdf822a4c3fdb153b92063f88705e3a6b
Duh. I apparently forgot the "[honister]" tag in the subject (see my original comment below).
Quoted 41 lines
Quoted 4 lines · Peter Kjellerstedt
From: Ovidiu Panait <[email protected]>
Commit [1] changed the pidfile dir to
/var/run/syslog-ng. This alsochanged
Quoted 1 line
the location where the control socket is searched for, causing the
following
Quoted 4 lines
error with systemd:
root@qemux86-64:~# syslog-ng-ctl config Error connecting control socket, socket='/var/run/syslog-ng/syslog-ng.ctl',
Quoted 13 lines
error='No such file or directory'
Update the systemd service file to point to the new location.
[1]
00d1d63e4f7f("syslog-ng: provide correct PID directory location to restart/stop syslog-ng daemon")Signed-off-by lmorales <[email protected]>Signed-off-by Ovidiu Panait <[email protected]>Signed-off-by Khem Raj <[email protected]>Signed-off-by Peter Kjellerstedt <[email protected]>---
Review
Quoted 7 lines
This has already been backported to the hardknott branch, but is missing in honister...
.../files/syslog-ng.service-the-syslog-ng-service.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0the-syslog-ng-service.patch b/meta-oe/recipes-support/syslog-
ng/files/syslog-ng.service-the-syslog-ng-service.patchQuoted 2 lines
index 0e1d09492..733480030 100644
--- a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch
Quoted 1 line
+++ b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-
syslog-ng-service.patch
Quoted 9 lines
meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch index 0ccc2b9..7f08c0e 100644 · line 44
Quoted 9 lines
meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch +1
-1@@ -38,7 +38,7 @@ index 0ccc2b9..7f08c0e 100644 -CONTROL_FILE=/var/run/syslog-ng.ctl -PID_FILE=/var/run/syslog-ng.pid +PERSIST_FILE=@LOCALSTATEDIR@/lib/syslog-ng/syslog-ng.persist -+CONTROL_FILE=@LOCALSTATEDIR@/lib/syslog-ng/syslog-ng.ctl ++CONTROL_FILE=@LOCALSTATEDIR@/run/syslog-ng/syslog-ng.ctl +PID_FILE=@LOCALSTATEDIR@/run/syslog-ng.pid OTHER_OPTIONS="--enable-core" --
//Peter
Quoted 10 lines · Peter Kjellerstedt
Quoted 10 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Khem Raj
Sent: den 18 februari 2022 03:19
To: Peter Kjellerstedt <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-oe][PATCH] syslog-ng: adjust control socket location
Quoted 5 lines
Quoted 2 lines
this is already applied in master via
b57d824fdf822a4c3fdb153b92063f88705e3a6bDuh. I apparently forgot the "[honister]" tag in the subject (see my original comment below).
I see thanks for update, maybe you want to resend it with that tag so that Armin picks it
Quoted 54 lines
Quoted 42 lines
Quoted 4 lines · Peter Kjellerstedt
From: Ovidiu Panait <[email protected]>
Commit [1] changed the pidfile dir to
/var/run/syslog-ng. This alsochanged
Quoted 1 line
the location where the control socket is searched for, causing the
following
Quoted 4 lines
error with systemd:
root@qemux86-64:~# syslog-ng-ctl config Error connecting control socket, socket='/var/run/syslog-ng/syslog-ng.ctl',
Quoted 13 lines
error='No such file or directory'
Update the systemd service file to point to the new location.
[1]
00d1d63e4f7f("syslog-ng: provide correct PID directory location to restart/stop syslog-ng daemon")Signed-off-by lmorales <[email protected]>Signed-off-by Ovidiu Panait <[email protected]>Signed-off-by Khem Raj <[email protected]>Signed-off-by Peter Kjellerstedt <[email protected]>---
Review
Quoted 7 lines
This has already been backported to the hardknott branch, but is missing in honister...
.../files/syslog-ng.service-the-syslog-ng-service.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0the-syslog-ng-service.patch b/meta-oe/recipes-support/syslog-
ng/files/syslog-ng.service-the-syslog-ng-service.patchQuoted 2 lines
index 0e1d09492..733480030 100644
--- a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch
Quoted 1 line
+++ b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-
syslog-ng-service.patch
Quoted 9 lines
meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch index 0ccc2b9..7f08c0e 100644 · line 44
Quoted 9 lines
meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch +1
-1@@ -38,7 +38,7 @@ index 0ccc2b9..7f08c0e 100644 -CONTROL_FILE=/var/run/syslog-ng.ctl -PID_FILE=/var/run/syslog-ng.pid +PERSIST_FILE=@LOCALSTATEDIR@/lib/syslog-ng/syslog-ng.persist -+CONTROL_FILE=@LOCALSTATEDIR@/lib/syslog-ng/syslog-ng.ctl ++CONTROL_FILE=@LOCALSTATEDIR@/run/syslog-ng/syslog-ng.ctl +PID_FILE=@LOCALSTATEDIR@/run/syslog-ng.pid OTHER_OPTIONS="--enable-core" --//Peter