blob: 012accf2b7f362731c297b343d7516a184660a35 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/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"
# pgpool_user (uid): User ID to run as (default nobody)
#
. %%RC_SUBR%%
name=pgpool
rcvar=${name}_enable
load_rc_config $name
: ${pgpool_enable="NO"}
: ${pgpool_conf="%%PREFIX%%/etc/pgpool.conf"}
: ${pgpool_user="nobody"}
command="%%PREFIX%%/bin/pgpool"
command_args="-f ${pgpool_conf}"
stop_cmd="${command} ${command_args} stop"
required_files="${pgpool_conf}"
run_rc_command "$1"
|