svn commit: r491466 - in head/databases/pgpool-II-40: . files
Torsten Zuehlsdorff
tz at FreeBSD.org
Mon Jan 28 09:27:19 UTC 2019
Author: tz
Date: Mon Jan 28 09:27:17 2019
New Revision: 491466
URL: https://svnweb.freebsd.org/changeset/ports/491466
Log:
databases/pgpool-II-40: add new configuration files to rc-script
pgpool 4.0 adds the configuration files "pool_hba.conf" and "pcp.conf", but
they weren't used until now. Also its possible to change there location
via rc.conf
PR: 235059
Submitted by: Franco Ricci <franco.ricc at gmail.com>
Modified:
head/databases/pgpool-II-40/Makefile
head/databases/pgpool-II-40/files/pgpool.in
Modified: head/databases/pgpool-II-40/Makefile
==============================================================================
--- head/databases/pgpool-II-40/Makefile Mon Jan 28 09:19:31 2019 (r491465)
+++ head/databases/pgpool-II-40/Makefile Mon Jan 28 09:27:17 2019 (r491466)
@@ -2,7 +2,7 @@
PORTNAME= pgpool-II
PORTVERSION= 4.0.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= databases
MASTER_SITES= http://www.pgpool.net/mediawiki/images/
PKGNAMESUFFIX= 40
Modified: head/databases/pgpool-II-40/files/pgpool.in
==============================================================================
--- head/databases/pgpool-II-40/files/pgpool.in Mon Jan 28 09:19:31 2019 (r491465)
+++ head/databases/pgpool-II-40/files/pgpool.in Mon Jan 28 09:27:17 2019 (r491466)
@@ -9,14 +9,18 @@
# 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"
+# 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_hba (file): Set location of your pool hba file.
+# Default is "%%PREFIX%%/etc/pool_hba.conf"
+# pgpool_pcp (file): Set location of your pcp conf file.
+# Default is "%%PREFIX%%/etc/pcp.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
@@ -28,13 +32,19 @@ load_rc_config $name
: ${pgpool_enable="NO"}
: ${pgpool_conf="%%PREFIX%%/etc/pgpool.conf"}
+: ${pgpool_hba="%%PREFIX%%/etc/pool_hba.conf"}
+: ${pgpool_pcp="%%PREFIX%%/etc/pcp.conf"}
: ${pgpool_user="nobody"}
: ${pgpool_stop_mode="smart"}
command="%%PREFIX%%/bin/pgpool"
-command_args="-f ${pgpool_conf}"
+command_args="-f ${pgpool_conf} -a ${pgpool_hba} -F ${pgpool_pcp}"
stop_cmd="${command} -m ${pgpool_stop_mode} ${command_args} stop"
+reload_cmd="${command} ${command_args} reload"
+extra_commands="reload"
required_files="${pgpool_conf}"
+
run_rc_command "$1"
+
More information about the svn-ports-all
mailing list