Hello,
after what felt like endless discussions with my colleague Alvar about
that the PGPool-II documentation is lying about when it needs a restart
and when a reload will suffice, I had the idea to have a look at the
actual init script.
What I found was this:
<snip>
;;
reload)
exit 3
;;
*)
</snip>
Erm, right. Not a miracle...
Attached is a patch that adds actual "reload" capacities to
/etc/init.d/pgpool2, which will hopefully save current & future users
some headaches.
Best regards,
--
Gunnar "Nick" Bluth
DBA ELSTER
Tel: +49 911/991-4665
Mobil: +49 172/8853339
--- pgpool2.original 2015-11-13 11:26:45.558578558 +0100
+++ pgpool2 2015-11-13 11:44:20.258199653 +0100
@@ -57,6 +57,15 @@
return $?
}
+d_reload() {
+ if is_running; then
+ su -c "$DAEMON reload" - postgres
+ return $?
+ else
+ return 3
+ fi
+}
+
case "$1" in
start)
@@ -92,7 +101,9 @@
fi
;;
reload)
- exit 3
+ log_daemon_msg "Reloading pgpool-II config" pgpool
+ d_reload
+ log_end_msg $?
;;
*)
log_failure_msg "Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
_______________________________________________
Pkg-postgresql-public mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-postgresql-public