Commit c85e633e authored by Bernd Zeimetz's avatar Bernd Zeimetz

Implementing force-reload using pgbouncer -R.

parent 651b8493
......@@ -46,6 +46,7 @@ pgbouncer (1.2.3-1) unstable; urgency=low
dh_installinit takes care of.
* Respect the setting of 'START' in /etc/default/pgbouncer. The option
was ignored completely.
* Implementing force-reload using pgbouncer -R.
- debian/install:
* Renamed from pgbouncer.install.
* Don't install an example userlist to /etc. File will be touched in
......@@ -68,7 +69,7 @@ pgbouncer (1.2.3-1) unstable; urgency=low
- debian/README.Debian
* Several spelling fixes.
-- Bernd Zeimetz <bzed@debian.org> Fri, 26 Sep 2008 18:15:12 +0200
-- Bernd Zeimetz <bzed@debian.org> Fri, 26 Sep 2008 18:44:28 +0200
pgbouncer (1.1.2.1-1) unstable; urgency=low
......
......@@ -43,6 +43,9 @@ d_start() {
fi
}
d_start_R() {
su -c "$DAEMON -R $OPTS 2>&1 </dev/null &" - postgres
}
d_stop() {
killproc -p $PIDFILE $DAEMON -INT
......@@ -77,11 +80,16 @@ case "$1" in
fi
exit $status
;;
restart|force-reload)
restart)
log_daemon_msg "Restarting pgbouncer" pgbouncer
d_stop && sleep 1 && d_start
log_end_msg $?
;;
force-reload)
log_daemon_msg "Force-Reloading pgbouncer" pgbouncer
d_start_R
log_end_msg $?
;;
try-restart)
if $0 status >/dev/null; then
$0 restart
......
......@@ -15,7 +15,7 @@ clean::
install/pgbouncer::
rm -f $(CURDIR)/debian/pgbouncer/usr/share/doc/pgbouncer/pgbouncer.ini
touch $(CURDIR)/debian/pgbouncer/usr/share/doc/pgbouncer/userlist.txt
touch $(CURDIR)/debian/pgbouncer/etc/pgbouncer/userlist.txt
binary-predeb/pgbouncer::
patch -p0 $(CURDIR)/debian/pgbouncer/etc/pgbouncer/pgbouncer.ini $(CURDIR)/debian/config.patch
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