Re: postmaster -S will not print an error if pid file exists - Mailing list pgsql-hackers

From Tom Lane
Subject Re: postmaster -S will not print an error if pid file exists
Date
Msg-id 3773.980543015@sss.pgh.pa.us
Whole thread Raw
In response to postmaster -S will not print an error if pid file exists  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> If a second postmaster is started on a data directory and the second one
> uses the -S option it will not print a message but simply exit and not
> start a background process.  The exit status is 0.

Since the whole point of -S is to throw away stdout/stderr, I hardly
see how you can complain about the fact that the error message went
to /dev/null.  I agree that zero exit status is not good, however;
will see if I can fix that.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Sure enough, the lock file is gone
Next
From: Tom Lane
Date:
Subject: Re: This script will crash the connection