[Pkg-sysvinit-devel] Bug#505468: initscripts: /lib/init/vars.sh overrides VERBOSE

Mirco Bauer m.bauer at gsd-software.net
Wed Nov 12 17:52:10 UTC 2008


Package: initscripts
Version: 2.86.ds1-38+etchnhalf.1
Severity: important

The /lib/init/vars.sh script which is included by init.d scripts as seen
in /etc/init.d/dovecot overrides the VERBOSE variable by checking the
existents of /proc/cmdline. I guess this check is trying to find out if
the invocation was done interactively.

Here the relevant code of /lib/init/vars.sh:

# Accept the same 'quiet' option as the kernel
if [ ! -e /proc/cmdline ] || egrep -qw 'quiet' /proc/cmdline ; then
    VERBOSE="no"
fi

In my case though this will always override VERBOSE, because
/proc/cmdline is never present in VServer guests.

mail_clinton:~# /etc/init.d/dovecot stop
mail_clinton:~# /etc/init.d/dovecot start
mail_clinton:~#

At first I thought dovecot is disabled via /etc/default/dovecot but that
was not the cause, reading mail.info and fixing the issue, dovecot
starts normally now, but I don't get any output by using the init.d script.

Could the check be changed to check something more reliable?

-- 
Mit freundlichen Grüßen,

Mirco Bauer

Leiter Software & System-Entwicklung (CSA, CTO)
GSD Software Design GmbH
Chrysanderstrasse 1
21029 Hamburg

www:   http://www.gsd-software.net
email: m.bauer at gsd-software.net
tel:   +49 40 72692500
fax:   +40 40 72692503






More information about the Pkg-sysvinit-devel mailing list