Skip site navigation (1) Skip section navigation (2)

"pg_ctl promote" exit status

From: Dhruv Ahuja <dhruvahuja(at)gmail(dot)com>
To: pgsql-cluster-hackers(at)postgresql(dot)org
Subject: "pg_ctl promote" exit status
Date: 2012-10-17 09:33:51
Message-ID: (view raw or whole thread)
Lists: pgsql-cluster-hackers

The "pg_ctl promote" command returns an exit code of 1 when the server
is not in standby mode, and the same exit code of 1 when the server
isn't started at all. The only difference at the time being is the
string output at the time, which FYI are...

pg_ctl: cannot promote server; server is not in standby mode


pg_ctl: PID file "/var/lib/pgsql/9.1/data/" does not exist
Is server running?


I am in the process of developing a clustering solution around luci
and rgmanager (in Red Hat EL 6) and for the time being, am basing it
off the string output. Maybe each different exit reason should have a
unique exit code, whatever my logic and approach to solving this
problem be?



pgsql-cluster-hackers by date

Next:From: Robert HaasDate: 2012-10-22 21:02:13
Subject: Re: "pg_ctl promote" exit status
Previous:From: Florent GuillaumeDate: 2012-10-17 04:38:01
Subject: Re: WebSphere Application Server support for postgres

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group