diff options
Diffstat (limited to 'databases/postgresql73-server/files/pgsql.sh.tmpl')
-rw-r--r-- | databases/postgresql73-server/files/pgsql.sh.tmpl | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/databases/postgresql73-server/files/pgsql.sh.tmpl b/databases/postgresql73-server/files/pgsql.sh.tmpl deleted file mode 100644 index e1673b4850c2..000000000000 --- a/databases/postgresql73-server/files/pgsql.sh.tmpl +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh - -# $FreeBSD$ -# -# For postmaster startup options, edit $PGDATA/postmaster.opts.default -# Preinstalled options are -i -o "-F" - -case $1 in -start) - [ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib - [ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && { - su -l pgsql -c \ - 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1' - echo -n ' pgsql' - } - ;; - -stop) - [ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && { - su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop' - } - ;; - -status) - [ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && { - su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status' - } - ;; - -*) - echo "usage: `basename $0` {start|stop|status}" >&2 - exit 64 - ;; -esac |