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

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 (view raw or flat)
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

pgsql-hackers by date

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

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