Re: Linux start script updates - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Linux start script updates
Date
Msg-id 4B8B9D6D020000250002F740@gw.wicourts.gov
Whole thread Raw
In response to Re: Linux start script updates  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Linux start script updates
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I think though that the answer to Peter's question is that "stop"
> has to be special cased to some extent, because it is not supposed
> to be an error to stop a service that's not running.  If it's not
> even installed, then a fortiori it's not running, so the exit code
> *must* be 0 not 5 in that case.
Exactly.  With Fedora respecting the standard in this regard, I'm
convinced we should, too.  In reviewing things based on Peter's
question, I did start to have doubts about *not* special-casing
"status" -- it has its own set of values and 5 is not assigned, so
using it seems wrong.  It seems like it should be 3 ("program is not
running").  Agreed?
-Kevin


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Re: pgsql: add EPERM to the list of return codes to expect from opening
Next
From: Tom Lane
Date:
Subject: Re: Linux start script updates