diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-04-14 18:40:59 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-04-14 18:40:59 +0000 |
commit | 15b73f9e08dca1801e77e92accdf02dc1f2463fd (patch) | |
tree | 366042985f3b23bafbbf47dfef94bcd7d35b47b3 /databases/pgpool/files | |
parent | 0025f82662297b7aa5426496ea66cbb42eed3202 (diff) | |
download | ports-15b73f9e08dca1801e77e92accdf02dc1f2463fd.tar.gz ports-15b73f9e08dca1801e77e92accdf02dc1f2463fd.zip |
Notes
Diffstat (limited to 'databases/pgpool/files')
-rw-r--r-- | databases/pgpool/files/pgpool.in | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/databases/pgpool/files/pgpool.in b/databases/pgpool/files/pgpool.in new file mode 100644 index 000000000000..54e1feb92fdd --- /dev/null +++ b/databases/pgpool/files/pgpool.in @@ -0,0 +1,34 @@ +#!/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" +# + +. %%RC_SUBR%% + +name=pgpool +rcvar=${name}_enable + +load_rc_config $name + +: ${pgpool_enable="NO"} +: ${pgpool_conf="%%PREFIX%%/etc/pgpool.conf"} + +command="%%PREFIX%%/bin/pgpool" +command_args="-f ${pgpool_conf}" +stop_cmd="${command} ${command_args} stop" + +required_files="${pgpool_conf}" + +run_rc_command "$1" |