Skip to content

Commit 5ffe48d

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

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

roles/pgbouncer/tasks/main.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@
1818
system: true
1919
state: present
2020

21-
- name: Ensure /run/pgbouncer directory exists
22-
ansible.builtin.file:
23-
path: /run/pgbouncer
24-
state: directory
25-
owner: pgbouncer
26-
group: pgbouncer
27-
mode: '0755'
28-
2921
- name: Ensure log directory exists
3022
ansible.builtin.file:
3123
path: /var/log/pgbouncer

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/pgbouncer.pid
10+
pidfile = /run/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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ExecReload=/bin/kill -HUP $MAINPID
99
Restart=always
1010
User=pgbouncer
1111
Group=pgbouncer
12-
PIDFile=/run/pgbouncer/pgbouncer.pid
12+
PIDFile=/run/pgbouncer.pid
1313
StandardOutput=append:/var/log/pgbouncer/pgbouncer.log
1414
StandardError=append:/var/log/pgbouncer/pgbouncer.log
1515

0 commit comments

Comments
 (0)