Re: Change 'pg_ctl: no server running' Exit Status to 3
Bruce Momjian <bruce@momjian.us>
From: Bruce Momjian <bruce@momjian.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: "Aaron W. Swenson" <aaron.w.swenson@gmail.com>, pgsql-hackers@postgresql.org
Date: 2011-10-13T17:02:40Z
Lists: pgsql-hackers
Attachments
- /rtmp/pg_ctl (text/x-diff) patch
Peter Eisentraut wrote: > On m?n, 2011-05-23 at 20:50 -0400, Aaron W. Swenson wrote: > > According to Linux Standard Base Core Specification 3.1 [1], the exit > > status should be '3' when the server isn't running. > > > > I've attached a very simple patch that resolves this cosmetic issue, > > which applies to all branches. > > If we're going to make the exit status meaningful, it should probably be > added to the documentation. Patch attached and applied, with docs. I also cleaned up some C comments, which are not in the attached patch. -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +