diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2001-04-21 11:34:34 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2001-04-21 11:34:34 +0000 |
commit | bfb9f8e6c93b2c638014779f1429d726c35e4e69 (patch) | |
tree | 93cdf5d5b46d48a1b57091ae3f53e526c137eda6 /databases/postgresql74-server/files/pgsql.sh.tmpl | |
parent | Upgrade to 3.23.37. (diff) |
Upgrade to 7.1, change to new layout style.
PR: ports/26741
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=41758
Diffstat (limited to 'databases/postgresql74-server/files/pgsql.sh.tmpl')
-rw-r--r-- | databases/postgresql74-server/files/pgsql.sh.tmpl | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/databases/postgresql74-server/files/pgsql.sh.tmpl b/databases/postgresql74-server/files/pgsql.sh.tmpl index 753e0b8aaf80..e775aab1d5fd 100644 --- a/databases/postgresql74-server/files/pgsql.sh.tmpl +++ b/databases/postgresql74-server/files/pgsql.sh.tmpl @@ -2,28 +2,29 @@ # $FreeBSD$ # -# For postmaster startup options, edit $PGDATA/postmaster.opts.default -# Preinstalled options are -i -o "-F" +# For postmaster startup options, edit $PGDATA/postgresql.conf + +PGBIN=%%PREFIX%%/%%PG_PREFIX%%bin case $1 in start) - [ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib - [ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && { + [ -d %%PREFIX%%/%%PG_PREFIX%%lib ] && /sbin/ldconfig -m %%PREFIX%%/%%PG_PREFIX%%lib + [ -x ${PGBIN}/pg_ctl ] && { su -l pgsql -c \ - 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1' + 'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl start -w -l ~pgsql/errlog' echo -n ' pgsql' } ;; stop) - [ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && { - exec su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop' + [ -x ${PGBIN}/pg_ctl ] && { + exec su -l pgsql -c 'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl stop -m fast' } ;; status) - [ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && { - exec su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status' + [ -x ${PGBIN}/pg_ctl ] && { + exec su -l pgsql -c 'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl status' } ;; |