some lsb related questions

Petter Reinholdtsen pere at hungry.com
Tue Jul 4 10:56:28 UTC 2006


[Carlos Villegas]
> Hi Petter,
> 
> I went through all the scripts and the output from my program to debug 
> it. Nevertheless, I have some questions about how is the program going 
> to check LSB compliance:
> 
> -When a header requires no arguments, should it be written anyway?

I'm not sure, but suspect it is optional.  I consider the require-*
headers non-optional, and write both even if one of them is empty.
This might also make it more obvious that it is ment to be empty, not
just missing by mistake.

> -If the lsb header "provides" has no arguments, should it be assumed
> that it provides a service with the script name?

Not sure what the standard specifies.  I would interpret it that way
myself, but it might be a mistake to have an empty provides.

> -Should we report a bug for skeleton to be FULLY lsb compliant by
> adding "Should-Start" and "Should-Stop"?

Well, the should-* headers are as far as I know optional, so if they
are not needed, there is no reason to have them in the file.

> -Is it an error when a script with only runlevel S for
> "Default-Start" has runlevels 0 and 6 for "Default-Stop"? Or it is
> just obvious that these are going to be the "Default-Stop"
> runlevels.

No, I believe it make perfect sense to start in runlevel S (aka
bootup) and stop in runlevel 0 (halt) or 6 (reboot).

> -The script rmnologin has Default-STart 0 1 2 3 4 5 6. Is this a bug?

Probably not.  It remove a file created in runlevel S to keep users
from logging in, and that file should be removed at the end of boots,
as well as when the machine is going down for halt and reboot.

Cc to the mailing list, in case I misunderstood something.

Friendly,
-- 
Petter Reinholdtsen



More information about the initscripts-ng-devel mailing list