[Syslog-ng-maintainers] Bug#878974: syslog-ng-core: /etc/init.d/syslog-ng doesn't return correct value in environments using chroot.
sasajima_t at jp.fujitsu.com
sasajima_t at jp.fujitsu.com
Wed Oct 18 09:56:39 BST 2017
Package: syslog-ng-core
Version: 3.8.1-10
Severity: normal
Dear Maintainer,
When syslog-ng daemon is running, following command returns 0:
/etc/init.d/syslog-ng status
.
But the above command doesn't return correct value in environments
using chroot.
Under using chroot, syslog-ng daemons run in each chrooted environment
on their own.
Although "/etc/init.d/syslog-ng status" must return status of the daemon
in the environment, it actually returns 0 when finds at least one daemon.
I think that can be fixed the script by using "status_of_proc -p $PIDFILE"
instead of "status_of_proc".
-- System Information:
Debian Release: 8.5
APT prefers stable
APT policy: (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.10.0-327.28.3.el7.x86_64 (SMP w/2 CPU cores)
Locale: LANG=ja_JP.utf8, LC_CTYPE=ja_JP.utf8 (charmap=UTF-8), LANGUAGE=ja_JP.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages syslog-ng-core depends on:
ii init-system-helpers 1.48
ii libc6 2.24-11+deb9u1
ii libcap2 1:2.24-8
ii libevtlog0 0.2.12-6
ii libglib2.0-0 2.42.1-1+b1
ii libivykis0 0.36.2-1
ii libnet1 1.1.6+dfsg-3
ii libpcre3 2:8.35-3.3+deb8u4
ii libssl1.1 1.1.0f-3
ii libsystemd0 215-17+deb8u4
ii libwrap0 7.6.q-25
ii lsb-base 4.1+Debian13+nmu1
ii syslog-ng-mod-journal 3.8.1-10
ii util-linux 2.29.2-1
Versions of packages syslog-ng-core recommends:
ii logrotate 3.8.7-1+b1
Versions of packages syslog-ng-core suggests:
pn syslog-ng-mod-add-contextual-data <none>
pn syslog-ng-mod-amqp <none>
pn syslog-ng-mod-geoip <none>
pn syslog-ng-mod-graphite <none>
ii syslog-ng-mod-json 3.8.1-10
ii syslog-ng-mod-mongodb 3.8.1-10
pn syslog-ng-mod-python <none>
pn syslog-ng-mod-redis <none>
pn syslog-ng-mod-riemann <none>
pn syslog-ng-mod-smtp <none>
ii syslog-ng-mod-sql 3.8.1-10
pn syslog-ng-mod-stomp <none>
-- Configuration Files:
/etc/syslog-ng/syslog-ng.conf changed [not included]
-- no debconf information
More information about the Syslog-ng-maintainers
mailing list