summaryrefslogtreecommitdiff
blob: cc4d0634b6b316ec9510e90f56d11460436e2520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff -Naruw pgbouncer-1.8.orig/etc/pgbouncer.ini pgbouncer-1.8/etc/pgbouncer.ini
--- pgbouncer-1.8.orig/etc/pgbouncer.ini	2017-12-18 11:03:18.000000000 -0500
+++ pgbouncer-1.8/etc/pgbouncer.ini	2017-12-20 06:48:25.935839539 -0500
@@ -34,7 +34,9 @@
 ;;;
 
 logfile = /var/log/pgbouncer/pgbouncer.log
-pidfile = /var/run/pgbouncer/pgbouncer.pid
+
+; Leave unset. This is handled in the initscript.
+;pidfile =
 
 ;;;
 ;;; Where to wait for clients
@@ -44,11 +46,12 @@
 listen_addr = 127.0.0.1
 listen_port = 6432
 
-; Unix socket is also used for -R.
-; On Debian it should be /var/run/postgresql
-;unix_socket_dir = /tmp
-;unix_socket_mode = 0777
-;unix_socket_group =
+; Unix socket is also used for -R (online restart), but the
+; initscripts can't do that. Generally, you'll want to leave these
+; alone. System-wide default is: /run/postgresql
+unix_socket_dir = /run/postgresql
+unix_socket_mode = 0777
+unix_socket_group = postgres
 
 ;;;
 ;;; TLS settings for accepting clients