Skip to content

Commit 76bf3e4

Browse files
committed
pgbouncer PID file path fixed.
1 parent 5ffe48d commit 76bf3e4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

roles/pgbouncer/templates/pgbouncer.ini.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ listen_port = {{ pgbouncer_listen_port }}
77
auth_type = md5
88
auth_file = /etc/pgbouncer/userlist.txt
99
logfile = /var/log/pgbouncer/pgbouncer.log
10-
pidfile = /run/pgbouncer.pid
10+
pidfile = /run/pgbouncer/pgbouncer.pid
1111
admin_users = {{ pgbouncer_auth_user }}
1212
pool_mode = {{ pgbouncer_pool_mode }}
1313
server_reset_query = DISCARD ALL

roles/pgbouncer/templates/pgbouncer.service.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ ExecReload=/bin/kill -HUP $MAINPID
99
Restart=always
1010
User=pgbouncer
1111
Group=pgbouncer
12-
PIDFile=/run/pgbouncer.pid
12+
RuntimeDirectory=pgbouncer
13+
RuntimeDirectoryMode=0755
14+
PIDFile=/run/pgbouncer/pgbouncer.pid
1315
StandardOutput=append:/var/log/pgbouncer/pgbouncer.log
1416
StandardError=append:/var/log/pgbouncer/pgbouncer.log
1517

0 commit comments

Comments
 (0)