Stuart Henderson, 22 Sep 2014 23:37:
> > are you _postgresql?  only that user (and root) has
> > access to /var/postgresql
> 
> No, I'm not, and that is why I think the rc_usercheck=NO should remain

pg_ctl status is basically a pimped up
'cat /var/postgresql/data/postmaster.pid'

there are 3 basic possibilities for checking:

a) using pg_ctl:
        1. only root can do the fancy cat postmaster.pid (current)
        2. root + _postgresql (remove rc_usercheck)

b) pexp=
        3. everybody can check for an actual running process of postgres
           (remove rc_usercheck + rc_check(), override pexp=)

i think b) makes more sense.
pid files being preferred on openbsd? :]

-f
-- 
if it wasn't for time everything would happen at once.

Reply via email to