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

Re: Bug#291148: [PROPOSAL] Add a 'status' option in init.d scripts



On Wed, Jan 19, 2005 at 10:56:57PM +0100, Thomas Hood wrote:
> 
> "/etc/init.d/foo start" should exit with a nonzero status if foo failed
> to start.  Unfortunately this status isn't conveyed to the user, as you
> say.

That is not exactly true: See 9.4. Console messages from `init.d' scripts

In particular the message end by a dot followed by a newline if and only
if the script is successful.

If you see something like ...

$ /etc/init.d/foo start
Starting foo daemon: foo $ 

... the script failed.

On the other hand, if you get

$ /etc/init.d/foo start
Starting foo daemon: foo.
$

... then the script run correctly.

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 



Reply to: