patrick keshishian, 22 Sep 2014 11:43:
> Why did you do this?
> The README is clear about creating the database:
> 
>   "If you are installing PostgreSQL for the first time, you have to create
>   a default database first."

that is of course a fair point, but it is not
important, it just highlighted a problem with
pg_ctl without -w.  isn't this also a false
positive?

> > i think it would make sense to get rid of rc_usercheck=NO,
> > all of rc_check() and override pexp= to the actual
> > daemon signature instead of pg_ctl..  this way any user
> > can run the check.
> 
> The database could be in a shutdown mode, and
> the change you propose could give a false-positive.

well, can 'pg_ctl status' tell it is in shutdown mode?

$ sudo /etc/rc.d/postgresql start
postgresql(ok)
$ sudo /etc/rc.d/postgresql stop & sudo /etc/rc.d/postgresql check
[1] 7866
postgresqlpostgresql(ok)
$ (ok)

seems like no.

> Maybe there are reasons why folks who have maintained
> this port, and have used it in production, for much longer
> than "first time", have things this way.

what are these reasons?
giving false-positivie ok startup messages
does not seem like a good solution to me.
neither is becoming root just to run pgrep postgres.

but of course, i can just run the commands myself
and not use it, right?

-f
-- 
exam is a four-letter word for torture.

Reply via email to