summaryrefslogtreecommitdiff
path: root/databases/postgresql72/files/pgsql.sh.tmpl
diff options
context:
space:
mode:
authorPalle Girgensohn <girgen@FreeBSD.org>2005-01-31 00:41:33 +0000
committerPalle Girgensohn <girgen@FreeBSD.org>2005-01-31 00:41:33 +0000
commit736c07eca84f449f165541e46eddc237f47d8d88 (patch)
tree003653e94af45fa4426d2a862891990bb3bcc07f /databases/postgresql72/files/pgsql.sh.tmpl
parentSplit the postgresql ports into a server and a client part. Hence, (diff)
The PostgreSQL version 7.2 is removed, since 7.2 branch is retired.
PR: 75344 Approved by: portmgr@ (kris), ade & sean (mentors)
Diffstat (limited to 'databases/postgresql72/files/pgsql.sh.tmpl')
-rw-r--r--databases/postgresql72/files/pgsql.sh.tmpl40
1 files changed, 0 insertions, 40 deletions
diff --git a/databases/postgresql72/files/pgsql.sh.tmpl b/databases/postgresql72/files/pgsql.sh.tmpl
deleted file mode 100644
index d67d9b642f1b..000000000000
--- a/databases/postgresql72/files/pgsql.sh.tmpl
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-# $FreeBSD$
-#
-# For postmaster startup options, edit $PGDATA/postgresql.conf
-
-PREFIX=%%PREFIX%%
-PGBIN=${PREFIX}/bin
-
-case $1 in
-start)
- [ -d ${PREFIX}/lib ] && /sbin/ldconfig -m ${PREFIX}/lib
- touch /var/log/pgsql
- chmod 600 /var/log/pgsql
- chown pgsql:pgsql /var/log/pgsql
- [ -x ${PGBIN}/pg_ctl ] && {
- su -l pgsql -c \
- '[ -d ${PGDATA} ] && exec %%PREFIX%%/bin/pg_ctl start -s -w -l /var/log/pgsql'
- echo -n ' pgsql'
- }
- ;;
-
-stop)
- [ -x ${PGBIN}/pg_ctl ] && {
- su -l pgsql -c 'exec %%PREFIX%%/bin/pg_ctl stop -s -m fast'
- echo -n ' pgsql'
- }
- ;;
-
-status)
- [ -x ${PGBIN}/pg_ctl ] && {
- exec su -l pgsql -c 'exec %%PREFIX%%/bin/pg_ctl status'
- }
- ;;
-
-*)
- echo "usage: `basename $0` {start|stop|status}" >&2
- exit 64
- ;;
-esac