Debian Bookwork: /lib/lsb/init-functions

Ralph Ronnquist rrq at rrq.au
Thu May 2 00:44:13 BST 2024


On Thu, May 02, 2024 at 12:39:45AM +0200, Patrik Schindler wrote:
> Hello,
> 
> I'm trying to make my existing initscripts more standards conformant and seek some guidance when to use which output function defined in /lib/lsb/init-functions. That file is part of the sysvinit-utils package, and the accompanying directory in /usr/share/doc doesn't contain anything helpful.
> 
> May I kindly ask how developers should learn how to properly use those many logging functions?
> 
> If there is no documentation, I'd have to gnaw through the code to deduce this myself to by best abilities. :-)

I think the "API" is somewhat deocumented in "man init-d-script" which
is about using "/lib/init.d/init-d-script" as script interpreter for
init scripts (it uses /lib/lsb/init-functions). That might be a start
point.

Ralph.

> 
> Thanks!
> 
> :wq! PoC
> 
> 



More information about the Debian-init-diversity mailing list