Re: Fix for rc_check() in postgresql.rc

2015-01-11 Thread Simon Bertrang
On Sun, Jan 11, 2015 at 02:04:50PM +0100, Antoine Jacoutot wrote: > On Sun, Jan 11, 2015 at 01:45:59PM +0100, Simon Bertrang wrote: > > On Sun, Jan 11, 2015 at 01:34:27PM +0100, Antoine Jacoutot wrote: > > > On Sun, Jan 11, 2015 at 12:57:42PM +0100, Simon Bertrang wrote: > > > > Hi, > > > > > > >

Re: Fix for rc_check() in postgresql.rc

2015-01-11 Thread Antoine Jacoutot
On Sun, Jan 11, 2015 at 01:45:59PM +0100, Simon Bertrang wrote: > On Sun, Jan 11, 2015 at 01:34:27PM +0100, Antoine Jacoutot wrote: > > On Sun, Jan 11, 2015 at 12:57:42PM +0100, Simon Bertrang wrote: > > > Hi, > > > > > > According to rc.subr(8) rc_check should return exit code 0 or 1 but > > > >

Re: Fix for rc_check() in postgresql.rc

2015-01-11 Thread Simon Bertrang
On Sun, Jan 11, 2015 at 01:34:27PM +0100, Antoine Jacoutot wrote: > On Sun, Jan 11, 2015 at 12:57:42PM +0100, Simon Bertrang wrote: > > Hi, > > > > According to rc.subr(8) rc_check should return exit code 0 or 1 but > > Not really no. The "check" action should return 0|1. > Ah right, different

Re: Fix for rc_check() in postgresql.rc

2015-01-11 Thread Antoine Jacoutot
On Sun, Jan 11, 2015 at 12:57:42PM +0100, Simon Bertrang wrote: > Hi, > > According to rc.subr(8) rc_check should return exit code 0 or 1 but Not really no. The "check" action should return 0|1. > for a running postgresql instance pg_ctl(1) returns 3. In the manpage > under status it says: If th

Fix for rc_check() in postgresql.rc

2015-01-11 Thread Simon Bertrang
Hi, According to rc.subr(8) rc_check should return exit code 0 or 1 but for a running postgresql instance pg_ctl(1) returns 3. In the manpage under status it says: If the server is not running, the process returns an exit status of 3. Below a patch to fix that - can someone please take care of it