The control script that ships with the postgres port (/usr/local/etc/rc.d/0.10.pgsql.sh) lacks a parameter in the restart option, causing logs to be send to stdout, instead of the log file. Fix: restart) [ -x ${PGBIN}/pg_ctl ] && { - exec su -l pgsql -c "exec ${PREFIX}/bin/pg_ctl restart -s -m fast" + exec su -l pgsql -c "exec ${PREFIX}/bin/pg_ctl restart -s -m fast -l ${logfile}" } ;;--nQnvt7LywucjQBWAsaC4FttkvdWZfKBInQ5KDstHQYYJLRRU Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- 010.pgsql.sh.original Tue Jun 10 09:12:43 2003 +++ 010.pgsql.sh Tue Jun 10 09:13:10 2003 @@ -32,7 +32,7 @@ How-To-Repeat: Set log_statement = true in ~pgsql/data/postgresql.conf, then issue: /usr/local/etc/rc.d/010.pgsql.sh restart Output: [78040] LOG: database system was shut down at 2003-06-09 02:00:13 ART [78040] LOG: checkpoint record is at 0/1A2C2D9C [78040] LOG: redo record is at 0/1A2C2D9C; undo record is at 0/0; shutdown TRUE [78040] LOG: next transaction id: 236987; next oid: 447527 [78040] LOG: database system is ready
This is true. I didn't notice since I use syslog. Perhaps it would be a better idea to autoconfigure the postgresql port for syslog, but please apply this patch in the mean time. Regards, Palle, maintainer
Responsible Changed From-To: freebsd-ports-bugs->osa I'll handle this.
State Changed From-To: open->closed Committed, thanks!