Re: BUG #4875: /etc/init.d/postgresql status shows postmaster is stopped when executed as user - Mailing list pgsql-bugs

From Craig Ringer
Subject Re: BUG #4875: /etc/init.d/postgresql status shows postmaster is stopped when executed as user
Date
Msg-id 1246273680.11346.12.camel@ayaki
Whole thread Raw
In response to Re: BUG #4875: /etc/init.d/postgresql status shows postmaster is stopped when executed as user  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Sun, 2009-06-28 at 00:32 -0400, Tom Lane wrote:
> "Armin Jenewein" <jenewein@googlemail.com> writes:
> > When i run "/etc/init.d/postgresql status" as a non-root user, it shows
> > "postmaster is stopped" while it actually is running. If i run it as root it
> > reports correctly.
>
> AFAICS this just depends on "pidof postmaster".  Perhaps you should be
> filing a bug against pidof.

First, though, make sure that SELinux isn't hiding the `postmaster'
process from your normal users. Make sure you can actually see it with
`ps aux' or `ps -ef' .

--
Craig Ringer

pgsql-bugs by date:

Previous
From: Craig Ringer
Date:
Subject: Re: BUG #4890: Allow insert character has no equivalent in "LATIN2"
Next
From: Craig Ringer
Date:
Subject: Re: BUG #4892: postmaster died and didn't restart