aboutsummaryrefslogtreecommitdiffstats
path: root/databases/pgcluster/files/pgcluster.in
diff options
context:
space:
mode:
Diffstat (limited to 'databases/pgcluster/files/pgcluster.in')
-rw-r--r--databases/pgcluster/files/pgcluster.in58
1 files changed, 0 insertions, 58 deletions
diff --git a/databases/pgcluster/files/pgcluster.in b/databases/pgcluster/files/pgcluster.in
deleted file mode 100644
index cfc9216be57..00000000000
--- a/databases/pgcluster/files/pgcluster.in
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD: /tmp/pcvs/ports/databases/pgcluster/files/Attic/pgcluster.in,v 1.3 2010-03-27 00:12:48 dougb Exp $
-#
-# PROVIDE: pgcluster
-# REQUIRE: DAEMON
-# BEFORE: pgreplicate
-#
-# Add the following line to /etc/rc.conf to enable pgcluster:
-#
-# pgcluster_enable="YES"
-# # optional
-# pgcluster_data="/home/pgsql/data"
-# pgcluster_flags="-w -s"
-#
-
-. /etc/rc.subr
-
-name="pgcluster"
-rcvar=`set_rcvar`
-
-command=%%PREFIX%%/bin/pg_ctl
-
-load_rc_config ${name}
-
-: ${pgcluster_enable="NO"}
-: ${pgcluster_data="%%PREFIX%%/pgsql/data"}
-: ${pgcluster_flags="-w -s"}
-
-pgcluster_user=pgsql
-pgcluster_flags="${pgcluster_flags} -D ${pgcluster_data}"
-pidfile="${pgcluster_data}/postmaster.pid"
-
-extra_commands="initdb recover"
-
-initdb_cmd="pgcluster_initdb"
-recover_cmd="pgcluster_recover"
-start_cmd="pgcluster_start"
-stop_cmd="pgcluster_stop"
-
-pgcluster_start()
-{
- su -m ${pgcluster_user} -c "exec ${command} start ${pgcluster_flags} -o '-i'"
-}
-pgcluster_stop()
-{
- su -m ${pgcluster_user} -c "exec ${command} stop ${pgcluster_flags} -m i"
-}
-pgcluster_recover()
-{
- su -m ${pgcluster_user} -c "exec ${command} start ${pgcluster_flags} -o '-i -R'"
-}
-pgcluster_initdb()
-{
- su -m ${pgcluster_user} -c "exec %%PREFIX%%/bin/initdb -D ${pgcluster_data}"
-}
-
-run_rc_command "$1"