svn commit: r467584 - head/databases/pgpool-II-36/files
Torsten Zuehlsdorff
tz at FreeBSD.org
Tue Apr 17 09:08:34 UTC 2018
Author: tz
Date: Tue Apr 17 09:08:33 2018
New Revision: 467584
URL: https://svnweb.freebsd.org/changeset/ports/467584
Log:
databases/pgpool-II-36: allow configuration of stop_mode
PR: 221312
Modified:
head/databases/pgpool-II-36/files/pgpool.in
Modified: head/databases/pgpool-II-36/files/pgpool.in
==============================================================================
--- head/databases/pgpool-II-36/files/pgpool.in Tue Apr 17 09:03:41 2018 (r467583)
+++ head/databases/pgpool-II-36/files/pgpool.in Tue Apr 17 09:08:33 2018 (r467584)
@@ -14,6 +14,9 @@
# 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
@@ -26,10 +29,11 @@ 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} ${command_args} stop"
+stop_cmd="${command} -m ${pgpool_stop_mode} ${command_args} stop"
required_files="${pgpool_conf}"
More information about the svn-ports-all
mailing list