Re: postmaster -S will not print an error if pid file exists

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: postmaster -S will not print an error if pid file exists
Date: 2001-01-26 21:03:35
Message-ID: 3773.980543015@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-01-26 21:04:42 Re: Sure enough, the lock file is gone
Previous Message Bruce Momjian 2001-01-26 20:57:17 Re: Open 7.1 items