-
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
6 changed files
with
48 additions
and
308 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#%PAM-1.0 | ||
auth include password-auth | ||
account include password-auth |
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,12 +1,21 @@ | ||
[Unit] | ||
Description=PgBouncer | ||
After=syslog.target network.target | ||
Description=A lightweight connection pooler for PostgreSQL | ||
Documentation=man:pgbouncer(1) | ||
After=network-online.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
PIDFile=/var/run/pgbouncer/pgbouncer.pid | ||
ExecStart=/etc/init.d/pgbouncer start | ||
ExecStop=/etc/init.d/pgbouncer stop | ||
ExecReload=/etc/init.d/pgbouncer reload | ||
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} | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
d /run/pgbouncer 0755 pgbouncer pgbouncer - |
Oops, something went wrong.