diff options
author | Torsten Zuehlsdorff <tz@FreeBSD.org> | 2019-01-28 09:27:17 +0000 |
---|---|---|
committer | Torsten Zuehlsdorff <tz@FreeBSD.org> | 2019-01-28 09:27:17 +0000 |
commit | 13a797dbfa45cfb4726b26e2dda1be213c948961 (patch) | |
tree | dd9949db22e399a6f3d09a0b8ed2e59df9ef11fc /databases/pgpool-II-40 | |
parent | a5807c4bd6c1a80080a8bff24c81adf340ae67d1 (diff) |
Notes
Diffstat (limited to 'databases/pgpool-II-40')
-rw-r--r-- | databases/pgpool-II-40/Makefile | 2 | ||||
-rw-r--r-- | databases/pgpool-II-40/files/pgpool.in | 28 |
2 files changed, 20 insertions, 10 deletions
diff --git a/databases/pgpool-II-40/Makefile b/databases/pgpool-II-40/Makefile index d2c2309829d3..60038f5fdea2 100644 --- a/databases/pgpool-II-40/Makefile +++ b/databases/pgpool-II-40/Makefile @@ -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 diff --git a/databases/pgpool-II-40/files/pgpool.in b/databases/pgpool-II-40/files/pgpool.in index 729fdaa23d9a..671cd6a80467 100644 --- a/databases/pgpool-II-40/files/pgpool.in +++ b/databases/pgpool-II-40/files/pgpool.in @@ -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" + |