Re: Policy for init.d scripts is not LSB compilant
On Thu, 2002-02-07 at 21:32, Manfred Wassmann wrote:
>
> David Pashley <debian-policy@davidpashley.com> writes:
>
> > [Checked against Policy version 3.5.6.0, 2001-07-24]
> >
> > I would like to suggest the following changes to Policy to make it more
> > in line with LSB 1.1. Most text is taken from:
>
> [...]
>
> > If the status command is given, the init script will return the
> > following exit status codes.
> >
> >
> > 0 program is running or service is OK
> > 1 program is dead and /var/run pid file exists
> > 2 program is dead and /var/lock lock file exists
> > 3 program is stopped
> > 4 program or service status is unknown
> > 5-99 reserved for future LSB use
>
> What a mess! What if the program left a pid- and a lockfile when
> dying?
>
I just copied the LSB text. I would assume that you would report 1, but
I would suggest someone mentions this to LSB.
--
David Pashley
david@davidpashley.com
Nihil curo de ista tua stulta superstitione.
Reply to: