Commit 2464fea0 authored by Christoph Berg's avatar Christoph Berg

Honor START=0 for the restart action. Patch by Chris Lamb, thanks!

Closes: #640796.
parent bfa51147
pgbouncer (1.4.2-2) unstable; urgency=low
* Honor START=0 for the restart action. Patch by Chris Lamb, thanks!
Closes: #640796.
-- Christoph Berg <myon@debian.org> Thu, 08 Sep 2011 09:45:23 +0200
pgbouncer (1.4.2-1) unstable; urgency=low
* New upstream release.
......
......@@ -35,10 +35,14 @@ is_running() {
d_start() {
if is_running; then
:
if [ ${START} -eq 1 ]; then
if is_running; then
:
else
su -c "$DAEMON $OPTS 2> /dev/null &" - postgres
fi
else
su -c "$DAEMON $OPTS 2> /dev/null &" - postgres
log_warning_msg "pgbouncer daemon disabled in /etc/default/pgbouncer"
fi
}
......@@ -62,13 +66,9 @@ d_stop() {
case "$1" in
start)
if [ ${START} -eq 1 ]; then
log_daemon_msg Starting pgbouncer
d_start
log_end_msg $?
else
log_warning_msg "pgbouncer daemon disabled in /etc/default/pgbouncer"
fi
log_daemon_msg Starting pgbouncer
d_start
log_end_msg $?
;;
stop)
log_daemon_msg Stopping pgbouncer
......
extend-diff-ignore = svn-deblayout
extend-diff-ignore = lib/usual/config.h
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment