-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
[Unit] | ||
Description=A lightweight connection pooler for PostgreSQL | ||
Documentation=man:pgbouncer(1) | ||
Documentation=https://www.pgbouncer.org | ||
After=network-online.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
RemainAfterExit=yes | ||
Type=notify | ||
TimeoutSec=300 | ||
|
||
User=pgbouncer | ||
Group=pgbouncer | ||
|
||
Environment=BOUNCERCONF=/etc/pgbouncer/pgbouncer.ini | ||
|
||
ExecStart=/usr/bin/pgbouncer -q ${BOUNCERCONF} | ||
ExecReload=/usr/bin/pgbouncer -R -q ${BOUNCERCONF} | ||
EnvironmentFile=-/etc/sysconfig/pgbouncer | ||
ExecStart=/usr/bin/pgbouncer ${BOUNCERCONF} | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
KillSignal=SIGINT | ||
Restart=on-failure | ||
|
||
# Give a reasonable amount of time for the server to start up/shut down | ||
TimeoutSec=300 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,12 @@ | |
Summary: Lightweight connection pooler for PostgreSQL | ||
Name: pgbouncer | ||
Version: 1.23.1 | ||
Release: 0%{?dist} | ||
Release: 1%{?dist} | ||
License: MIT and BSD | ||
Group: Applications/Databases | ||
URL: https://pgbouncer.github.io | ||
URL: https://www.pgbouncer.org | ||
|
||
Source0: https://pgbouncer.github.io/downloads/files/%{version}/%{name}-%{version}.tar.gz | ||
Source0: https://www.pgbouncer.org/downloads/files/%{version}/%{name}-%{version}.tar.gz | ||
Source1: %{name}.service | ||
Source2: %{name}.logrotate | ||
Source3: %{name}.pam | ||
|
@@ -145,6 +145,9 @@ fi | |
################################################################################ | ||
|
||
%changelog | ||
* Thu Oct 31 2024 Anton Novojilov <[email protected]> - 1.23.1-1 | ||
- Improve systemd unit file | ||
|
||
* Mon Sep 09 2024 Anton Novojilov <[email protected]> - 1.23.1-0 | ||
- https://www.pgbouncer.org/changelog.html#pgbouncer-123x | ||
|
||
|