aboutsummaryrefslogtreecommitdiffstats
path: root/extra/pgpool/pgpool.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-06-18 06:17:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-06-18 06:17:35 +0000
commit261f0239d025b487ff40624bc4890ffe538a073e (patch)
tree3f1aad750544bf95fbf0c3e3f3864d010fc05f27 /extra/pgpool/pgpool.initd
parentdd3134003c0d3795b130eba6a72e030911ddf16f (diff)
parentf67eb3766412fd0e9713cf42edd0e1eb4d68a11c (diff)
downloadaports-261f0239d025b487ff40624bc4890ffe538a073e.tar.bz2
aports-261f0239d025b487ff40624bc4890ffe538a073e.tar.xz
Merge commit 'mmason/master'
Diffstat (limited to 'extra/pgpool/pgpool.initd')
-rw-r--r--extra/pgpool/pgpool.initd24
1 files changed, 24 insertions, 0 deletions
diff --git a/extra/pgpool/pgpool.initd b/extra/pgpool/pgpool.initd
new file mode 100644
index 0000000000..d577cf9e16
--- /dev/null
+++ b/extra/pgpool/pgpool.initd
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ need net
+ 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
+}
+