mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
This commit is contained in:
parent
9f24dbcd6f
commit
00d1d63e4f
|
|
@ -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} \
|
||||
"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user