diff options
author | Jochen Neumeister <joneum@FreeBSD.org> | 2018-11-15 21:06:26 +0000 |
---|---|---|
committer | Jochen Neumeister <joneum@FreeBSD.org> | 2018-11-15 21:06:26 +0000 |
commit | a5f13487caad93042f66f3fa6093310885eed0fe (patch) | |
tree | 063f51853db23631e628245552966994938dd4d3 /databases/pgpool-II-40/files/pgpool.in | |
parent | devel/awscli: Update 1.16.44 -> 1.16.55 (diff) |
New Port: databases/pgpool-II-40
pgpool is a connection pool server for PostgreSQL. pgpool runs between
PostgreSQL's clients(front ends) and servers(back ends). A PostgreSQL client can
connect to pgpool as if it were a standard PostgreSQL server.
pgpool caches the connection to PostgreSQL server to reduce the overhead to
establish the connection to it.
WWW: http://pgpool.net/
PR: 232957
Reported by: Franco Ricci <franco.ricc@gmail.com>
Approved by: tz (implicit)
Sponsored by: Netzkommune GmbH
Diffstat (limited to 'databases/pgpool-II-40/files/pgpool.in')
-rw-r--r-- | databases/pgpool-II-40/files/pgpool.in | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/databases/pgpool-II-40/files/pgpool.in b/databases/pgpool-II-40/files/pgpool.in new file mode 100644 index 000000000000..729fdaa23d9a --- /dev/null +++ b/databases/pgpool-II-40/files/pgpool.in @@ -0,0 +1,40 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: pgpool +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# pgpool_enable (bool): Set to NO by default. +# Set it to YES to enable pgpool. +# pgpool_conf (file): Set location of your config. +# Default is "%%PREFIX%%/etc/pgpool.conf" +# pgpool_user (uid): User ID to run as (default nobody) +# pgpool_stop_mode (string): Shutdown mode +# Default is "smart" +# Possibilities are "smart", "fast", or "immediate" +# + +. /etc/rc.subr + +name=pgpool +rcvar=pgpool_enable + +load_rc_config $name + +: ${pgpool_enable="NO"} +: ${pgpool_conf="%%PREFIX%%/etc/pgpool.conf"} +: ${pgpool_user="nobody"} +: ${pgpool_stop_mode="smart"} + +command="%%PREFIX%%/bin/pgpool" +command_args="-f ${pgpool_conf}" +stop_cmd="${command} -m ${pgpool_stop_mode} ${command_args} stop" + +required_files="${pgpool_conf}" + +run_rc_command "$1" |