pg.ddx.io pgsql-pkg-debian@postgresql.org mailing list archive
help / color / mirror / Atom feedpgbouncer init.d script
2+ messages / 2 participants
[nested] [flat]
* pgbouncer init.d script
@ 2013-03-20 14:58 Nicolas Payart <postgresql@htmledit.com>
2013-03-22 13:59 ` Re: pgbouncer init.d script Christoph Berg <cb@df7cb.de>
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Payart @ 2013-03-20 14:58 UTC (permalink / raw)
To: 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@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
--
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pgbouncer init.d script
2013-03-20 14:58 pgbouncer init.d script Nicolas Payart <postgresql@htmledit.com>
@ 2013-03-22 13:59 ` Christoph Berg <cb@df7cb.de>
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Berg @ 2013-03-22 13:59 UTC (permalink / raw)
To: Nicolas Payart <postgresql@htmledit.com>; +Cc: pgsql-pkg-debian
Re: Nicolas Payart 2013-03-20 <5149CEAC.5040107@htmledit.com>
> 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...
Ouch. Thanks for spotting.
I've fixed the init script, and also added a "restart" check to the
test suite. I'll upload a new version as soon as the binaries are all
built.
Christoph
--
cb@df7cb.de | http://www.df7cb.de/
--
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2013-03-22 13:59 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-03-20 14:58 pgbouncer init.d script Nicolas Payart <postgresql@htmledit.com>
2013-03-22 13:59 ` Christoph Berg <cb@df7cb.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox