aboutsummaryrefslogtreecommitdiffstats
path: root/main/pgpool/pgpool.initd
blob: 95ab0cd6bbb7f5f1a72c38c674a1308f1b3f2578 (plain)
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
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

depend() {
	need net
	after firewall
	use postgresql
}

start() {
	ebegin "Starting pgpool-II"
	start-stop-daemon --start --quiet --exec /usr/bin/pgpool --f /etc/pgpool.conf -F /etc/pcp.conf
	result=$?
	eend $result
}

stop() {
	ebegin "Stopping pgpool-II"
	start-stop-daemon --stop --quiet --pidfile /var/run/pgpool.pid
	result=$?
	eend $result
}