[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#396454: lintian: Check for LSB logging usage in init.d scripts



David Härdeman <david@hardeman.nu> writes:

> Package: lintian
> Version: 1.23.25
> Severity: wishlist

> Now that lintian checks for LSB boot dependency headers in init.d scripts,
> it would be nice if it could also check whether the script(s) use the LSB
> logging functions to generate messages.

> Looking for lines containing "echo" might be a sufficient check...

I'm not at all convinced that using the LSB logging functions is even a
good idea, let alone someting lintian should be diagnosing, until the
quality of messages omitted using them is up to what could be done
before.  Right now, switching to the LSB logging functions results in a
significant loss of readability and clarity for failure messages.

If you feel this is important, I'd encourage you to work on improving
those logging functions so that they can provide multi-line help text for
errors, handle whitespace properly when reporting errors in daemon startup
so that words aren't mashed together without line breaks or spaces, and
otherwise make the output look a bit less horrible for anything other than
normal startup.

Partly this is my fault since I've not filed specific bugs against the
lsb package.  Most of the problems are fairly apparent, though.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: