From 8a928af72d1ebb839a332158c27129b8a154275e Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Thu, 4 Dec 2003 12:00:49 +0000 Subject: Introduce the world to PostgreSQL 7.4! By and large this release is regarded as a major release with features with interest to those with large databases. The updates are extensive and the best source of info is in the release notes. Enjoy and direct questions to database@! Release notes: http://www.postgresql.org/docs/7.4/static/release.html#RELEASE-7-4 PR: ports/59403, ports/59404, ports/59393, ports/59394, ports/59395, ports/59397, ports/59398, ports/59402, && ports/59401 Submitted by: maintainer Approved by: marcus (portmgr@ hat) --- databases/postgresql91-server/files/pgsql.sh.tmpl | 20 +++++++++++--------- .../postgresql91-server/files/pkg-message.server | 4 ++++ 2 files changed, 15 insertions(+), 9 deletions(-) (limited to 'databases/postgresql91-server/files') diff --git a/databases/postgresql91-server/files/pgsql.sh.tmpl b/databases/postgresql91-server/files/pgsql.sh.tmpl index 0d85d6fba25d..3f8706d6af0c 100644 --- a/databases/postgresql91-server/files/pgsql.sh.tmpl +++ b/databases/postgresql91-server/files/pgsql.sh.tmpl @@ -9,30 +9,32 @@ PREFIX=%%PREFIX%% PGBIN=${PREFIX}/bin -logfile=/var/log/pgsql case $1 in start) - touch ${logfile} - chmod 600 ${logfile} - chown pgsql:pgsql ${logfile} [ -x ${PGBIN}/pg_ctl ] && { - su -l pgsql -c \ - "[ -d \${PGDATA} ] && exec ${PREFIX}/bin/pg_ctl start -s -w -l ${logfile}" echo -n ' pgsql' + su -l pgsql -c \ + "[ -d \${PGDATA} ] && exec ${PREFIX}/bin/pg_ctl start -s -w" } ;; stop) [ -x ${PGBIN}/pg_ctl ] && { - su -l pgsql -c "exec ${PREFIX}/bin/pg_ctl stop -s -m fast" echo -n ' pgsql' + su -l pgsql -c "exec ${PREFIX}/bin/pg_ctl stop -s -m fast" } ;; restart) [ -x ${PGBIN}/pg_ctl ] && { - exec su -l pgsql -c "exec ${PREFIX}/bin/pg_ctl restart -s -m fast -l ${logfile}" + exec su -l pgsql -c "exec ${PREFIX}/bin/pg_ctl restart -s -m fast" + } + ;; + +reload) + [ -x ${PGBIN}/pg_ctl ] && { + exec su -l pgsql -c "exec ${PREFIX}/bin/pg_ctl reload" } ;; @@ -43,7 +45,7 @@ status) ;; *) - echo "usage: `basename $0` {start|stop|restart|status}" >&2 + echo "usage: `basename $0` {start|stop|restart|reload|status}" >&2 exit 64 ;; esac diff --git a/databases/postgresql91-server/files/pkg-message.server b/databases/postgresql91-server/files/pkg-message.server index 6027012da44c..a2e7293462ca 100644 --- a/databases/postgresql91-server/files/pkg-message.server +++ b/databases/postgresql91-server/files/pkg-message.server @@ -13,5 +13,9 @@ You can then start PostgreSQL by running: /usr/local/etc/rc.d/010.pgsql.sh start For postmaster settings, see ~pgsql/data/postgresql.conf + +NB. FreeBSD's PostgreSQL port now by default logs to syslog + See ~pgsql/data/postgresql.conf for more info + For more tips, read ~pgsql/post-install-notes ====================================================================== -- cgit v1.2.3