pgbouncer init.d script

From: Nicolas Payart <postgresql(at)htmledit(dot)com>
To: pgsql-pkg-debian(at)postgresql(dot)org
Subject: pgbouncer init.d script
Date: 2013-03-20 14:58:52
Message-ID: 5149CEAC.5040107@htmledit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian

I just installed pgbouncer 1.5.4-2.pgdg60+1 from apt.postgresql.org repo
on a Linux Debian Squeeze.

init.d script use start-stop-daemon with option "--status".
But start-stop-daemon version on debian squeeze is actually 1.15.8.13
and does not implement "--status" option...

So when calling restart or status command, you get an error :

15:53| nico(at)vm:~ # /etc/init.d/pgbouncer restart
start-stop-daemon: unrecognized option '--status'
Try 'start-stop-daemon --help' for more information.
Starting server: pgbouncer/usr/sbin/pgbouncer already running.
.
.

Waiting for a patch, I commented the following lines in
/etc/init.d/pgbouncer :

restart)
# $SSD --status
# if [ $? -eq 0 ] ; then
echo -n "Invoking $NAME restart"
su -c "$DAEMON -R $OPTS 2> /dev/null" - $RUNASUSER
# sleep 5
# $SSD --status
# else
# $0 start
# fi
;;

Regards,
Nico

Responses

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message Christoph Berg 2013-03-22 13:59:04 Re: pgbouncer init.d script
Previous Message Bruce Momjian 2013-03-13 22:01:21 Re: Updates for the apt.postgresql.org instructions