diff options
Diffstat (limited to 'databases/postgresql/files/pgsql.sh')
-rw-r--r-- | databases/postgresql/files/pgsql.sh | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/databases/postgresql/files/pgsql.sh b/databases/postgresql/files/pgsql.sh deleted file mode 100644 index d76a31e9513..00000000000 --- a/databases/postgresql/files/pgsql.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# -# $NetBSD: pgsql.sh,v 1.3 2001/03/25 11:29:37 wennmach Exp $ -# -# PostgreSQL database rc.d control script -# -# PROVIDE: pgsql -# REQUIRE: DAEMON -# KEYWORD: shutdown - -name="postgres" -ctl_command="@PREFIX@/bin/pg_ctl" -command="@PREFIX@/bin/postmaster" -command_args="-S -o -F" # start in silent mode and disable - # automatic fsync after each - # transaction -#command_args="-S -i -o -F" # as above, but also allows TCP/IP - # connections - -USER="@PGUSER@" -PGHOME="@PGHOME@" -SU="@SU@" - -cmd=${1:-start} - -if [ -x ${ctl_command} -a -x ${command} ] -then - case ${cmd} in - restart) - echo "Restarting ${name}." - echo "exec ${ctl_command} restart >> ${PGHOME}/errlog" \ - | ${SU} -l ${USER} - ;; - - start) - echo "Starting ${name}." - echo "exec ${ctl_command} \ - -p ${command} -o \"${command_args}\" start" \ - | ${SU} -l ${USER} - ;; - - stop) - echo "Stopping ${name}." - echo "exec ${ctl_command} stop >> ${PGHOME}/errlog" \ - | ${SU} -l ${USER} - ;; - - status) - echo "exec ${ctl_command} status" \ - | ${SU} -l ${USER} - ;; - - *) - echo 1>&2 "Usage: $0 [restart|start|stop|status]" - exit 1 - ;; - esac -fi |