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

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Armin Jenewein <jenewein(at)googlemail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4875: /etc/init.d/postgresql status shows postmaster is stopped when executed as user
Date: 2009-06-29 11:08:00
Message-ID: 1246273680.11346.12.camel@ayaki
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sun, 2009-06-28 at 00:32 -0400, Tom Lane wrote:
> "Armin Jenewein" <jenewein(at)googlemail(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Craig Ringer 2009-06-29 11:19:18 Re: BUG #4892: postmaster died and didn't restart
Previous Message Craig Ringer 2009-06-29 11:04:49 Re: BUG #4890: Allow insert character has no equivalent in "LATIN2"