Date: Tue, 17 Apr 2018 09:08:34 +0000 (UTC) From: Torsten Zuehlsdorff <tz@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467584 - head/databases/pgpool-II-36/files Message-ID: <201804170908.w3H98Ywe009391@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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}"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804170908.w3H98Ywe009391>