aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorJagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>2017-07-24 14:01:11 +0530
committerMartin Jansa <Martin.Jansa@gmail.com>2017-08-13 13:19:00 +0200
commit00d1d63e4f7fb91dfc46d82b5ce36c028c9d85ca (patch)
treef28a207c39ac3a462546964076acc45e1e0f4d2c /meta-oe
parent9f24dbcd6f0887481a9fae0271e7784a7d81c4e9 (diff)
downloadmeta-openembedded-contrib-00d1d63e4f7fb91dfc46d82b5ce36c028c9d85ca.tar.gz
meta-openembedded-contrib-00d1d63e4f7fb91dfc46d82b5ce36c028c9d85ca.tar.bz2
meta-openembedded-contrib-00d1d63e4f7fb91dfc46d82b5ce36c028c9d85ca.zip
syslog-ng: provide correct PID directory location to restart/stop syslog-ng daemon
If "--with-pidfile-dir" configure option is not specified, then the syslog-ng configure script assigns PID directory to /var/lib/syslog-ng; which is where the PID file of syslog-ng process is created. But the syslog-ng initscript (/etc/init.d/syslog-ng) uses /var/lib/syslog-ng/ as PID directory, this results in not stopping/restarting syslog-ng daemons when it was requested to do so. For example: -- snip -- root@qemux86:~# /etc/init.d/syslog status /usr/sbin/syslog-ng (pid 345 344) is running... root@qemux86:~# /etc/init.d/syslog stop Stopping syslog-ng:. root@qemux86:~# /etc/init.d/syslog status /usr/sbin/syslog-ng (pid 345 344) is running... root@qemux86:~# -- snip -- Hence set --with-pidfile-dir to "/var/run/syslog-ng", so that syslog-ng daemon can be stopped/restarted via initscript. Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/syslog-ng/syslog-ng.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
index 0977f7e863..f1bf9b06f6 100644
--- a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
+++ b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
@@ -36,6 +36,7 @@ EXTRA_OECONF = " \
--with-librabbitmq-client=no \
--disable-python \
--disable-java --disable-java-modules \
+ --with-pidfile-dir=${localstatedir}/run/${BPN} \
${CONFIG_TLS} \
"