summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/pgbouncer/files/pgbouncer.initd')
-rw-r--r--dev-db/pgbouncer/files/pgbouncer.initd34
1 files changed, 0 insertions, 34 deletions
diff --git a/dev-db/pgbouncer/files/pgbouncer.initd b/dev-db/pgbouncer/files/pgbouncer.initd
deleted file mode 100644
index ca8b8c95b..000000000
--- a/dev-db/pgbouncer/files/pgbouncer.initd
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/sbin/runscript
-
-PIDFILE=/var/run/pgbouncer/pgbouncer.pid
-
-opts="start stop reload"
-
-depend() {
- need net
- after postgresql
-}
-
-start() {
- mkdir -p /var/run/pgbouncer
- chown pgbouncer:pgbouncer /var/run/pgbouncer
-
- ebegin "Starting pgbouncer"
-
- start-stop-daemon --start --pidfile ${PIDFILE} \
- --exec /usr/bin/pgbouncer -- -q -d -u pgbouncer /etc/pgbouncer.conf
- eend $? "Failed to start pgbouncer"
-}
-
-stop() {
- ebegin "Stopping pgbouncer"
- start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
- eend $?
-}
-
-reload() {
- ebegin "Gracefully reloading pgbouncer"
- start-stop-daemon --stop --oknodo --signal HUP \
- --pidfile ${PIDFILE}
- eend $?
-}