Created attachment 241673 [details] pgbouncer.diff Stop-signal customization for graceful shutdown SIGINT Safe shutdown. Same as issuing PAUSE and SHUTDOWN on the console. SIGTERM (FreeBSD default) Immediate shutdown. Same as issuing SHUTDOWN on the console.
Created attachment 241674 [details] pgbouncer.diff Added gracefulstop command
Why can't you just make the normal stop command perform the graceful shutdown? Is there a technical reason for providing a separate rc script command?
Thank you for your contribution.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e7de14f3bb723e71746fb2179aafbe8d897c0b62 commit e7de14f3bb723e71746fb2179aafbe8d897c0b62 Author: Dmitry Wagin <dmitry.wagin@ya.ru> AuthorDate: 2023-04-23 15:28:39 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-04-23 17:17:49 +0000 databases/pgbouncer: add a graceful stop command to rc script The user can now terminate pgbouncer both with gracefulstop (sends SIGINT) and with stop (sends SIGTERM). PR: 271023 databases/pgbouncer/Makefile | 1 + databases/pgbouncer/files/pgbouncer.in | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-)