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

Bug#330275: apache2: init script exits with 0 when called incorrectly



On Tue, 27 Sep 2005, Adam Conrad wrote:

> Luke Kanies wrote:
> >
> > Apache2's init script does not support a 'restart' option
>
> It doesn't?  It does here.

Duh, I meant 'status', not 'restart'.  Sorry.

> > but when it
> > is called with that option, it mistakenly exits with a return code of 0,
> > instead of a code indicating failure.  According to the LSB, it should
> > exit with a 4:
>
> Right you are, though, that it shouldn't exit 0 when called incorrectly,
> will fix that.

Thanks.

Now if I could I could get that script and the other 81 init scripts I
have to support 'status'...

$ ls /etc/init.d | wc -l
93
$ grep -l status /etc/init.d/* | wc -l
11

-- 
There are three kinds of death in this world.  There's heart death,
there's brain death, and there's being off the network.  -- Guy Almes
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://config.sage.org




Reply to: