Lines 14-19
Link Here
|
14 |
# pgpool_conf (file): Set location of your config. |
14 |
# pgpool_conf (file): Set location of your config. |
15 |
# Default is "%%PREFIX%%/etc/pgpool.conf" |
15 |
# Default is "%%PREFIX%%/etc/pgpool.conf" |
16 |
# pgpool_user (uid): User ID to run as (default nobody) |
16 |
# pgpool_user (uid): User ID to run as (default nobody) |
|
|
17 |
# pgpool_stop_mode (string): Shutdown mode |
18 |
# Default is "smart" |
19 |
# Possibilities are "smart", "fast", or "immediate" |
17 |
# |
20 |
# |
18 |
|
21 |
|
19 |
. /etc/rc.subr |
22 |
. /etc/rc.subr |
Lines 26-35
Link Here
|
26 |
: ${pgpool_enable="NO"} |
29 |
: ${pgpool_enable="NO"} |
27 |
: ${pgpool_conf="%%PREFIX%%/etc/pgpool.conf"} |
30 |
: ${pgpool_conf="%%PREFIX%%/etc/pgpool.conf"} |
28 |
: ${pgpool_user="nobody"} |
31 |
: ${pgpool_user="nobody"} |
|
|
32 |
: ${pgpool_stop_mode="smart"} |
29 |
|
33 |
|
30 |
command="%%PREFIX%%/bin/pgpool" |
34 |
command="%%PREFIX%%/bin/pgpool" |
31 |
command_args="-f ${pgpool_conf}" |
35 |
command_args="-f ${pgpool_conf}" |
32 |
stop_cmd="${command} ${command_args} stop" |
36 |
stop_cmd="${command} -m ${pgpool_stop_mode} ${command_args} stop" |
33 |
|
37 |
|
34 |
required_files="${pgpool_conf}" |
38 |
required_files="${pgpool_conf}" |
35 |
|
39 |
|