"pg_ctl -w" does not return a failure exit code when postmaster fails to start

From: "Steve McWilliams" <smcwilliams(at)EmprisaNetworks(dot)com>
To: <pgsql-bugs(at)postgresql(dot)org>
Subject: "pg_ctl -w" does not return a failure exit code when postmaster fails to start
Date: 2004-12-21 16:28:18
Message-ID: 3045.10.1.1.142.1103646498.squirrel@wwws.emprisanetworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches

I have noticed on linux that if you try to start postmaster via "pg_ctl
-w", but the postmaster fails to run (e.g. if you forgot to create
PGDATA), it returns a 0 exit code. It needs to return a non-0 exit code
if postmaster failed to start, when you are using the "-w" option to wait
for it to start.

Thanks,
Steve McWilliams

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Steve McWilliams 2004-12-21 16:43:06 Problems with "-w" option on pg_ctl.exe running as a windows service
Previous Message PostgreSQL Bugs List 2004-12-21 15:17:32 BUG #1352: 100's of postgres.exe tasks created

Browse pgsql-patches by date

  From Date Subject
Next Message Steve McWilliams 2004-12-21 16:43:06 Problems with "-w" option on pg_ctl.exe running as a windows service
Previous Message Tom Lane 2004-12-21 15:44:48 Re: Bgwriter behavior