summaryrefslogtreecommitdiff
path: root/databases/postgresql73-server/files/pgsql.sh.tmpl
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2003-03-29 09:53:18 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2003-03-29 09:53:18 +0000
commit2c36078d184e6b3fde44793800a6c8ca0b0639f1 (patch)
tree19d35773be783fd6761833f599af82301c20ceac /databases/postgresql73-server/files/pgsql.sh.tmpl
parent46e9a484f814c07d51ab2cb90517f4f5c4c368ae (diff)
Diffstat (limited to 'databases/postgresql73-server/files/pgsql.sh.tmpl')
-rw-r--r--databases/postgresql73-server/files/pgsql.sh.tmpl49
1 files changed, 0 insertions, 49 deletions
diff --git a/databases/postgresql73-server/files/pgsql.sh.tmpl b/databases/postgresql73-server/files/pgsql.sh.tmpl
deleted file mode 100644
index 98311c868ac3..000000000000
--- a/databases/postgresql73-server/files/pgsql.sh.tmpl
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-# $FreeBSD$
-#
-# For postmaster startup options, edit $PGDATA/postgresql.conf
-#
-# Note that PGDATA is set in ~pgsql/.profile, don't try to manipulate it here!
-#
-
-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'
- }
- ;;
-
-stop)
- [ -x ${PGBIN}/pg_ctl ] && {
- su -l pgsql -c "exec ${PREFIX}/bin/pg_ctl stop -s -m fast"
- echo -n ' pgsql'
- }
- ;;
-
-restart)
- [ -x ${PGBIN}/pg_ctl ] && {
- exec su -l pgsql -c "exec ${PREFIX}/bin/pg_ctl restart -s -m fast"
- }
- ;;
-
-status)
- [ -x ${PGBIN}/pg_ctl ] && {
- exec su -l pgsql -c "exec ${PREFIX}/bin/pg_ctl status"
- }
- ;;
-
-*)
- echo "usage: `basename $0` {start|stop|restart|status}" >&2
- exit 64
- ;;
-esac