pgpool2-3.5.0-path-fix.patch 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. diff -aruw pgpool-II-3.5.0.orig/src/include/pool.h pgpool-II-3.5.0/src/include/pool.h
  2. --- pgpool-II-3.5.0.orig/src/include/pool.h 2016-02-10 03:53:31.000000000 -0500
  3. +++ pgpool-II-3.5.0/src/include/pool.h 2016-03-12 06:47:15.297966248 -0500
  4. @@ -72,16 +72,16 @@
  5. #define HBA_CONF_FILE_NAME "pool_hba.conf"
  6. /* pid file directory */
  7. -#define DEFAULT_LOGDIR "/tmp"
  8. +#define DEFAULT_LOGDIR "@PGPOOL_SOCKETDIR@"
  9. /* Unix domain socket directory */
  10. -#define DEFAULT_SOCKET_DIR "/tmp"
  11. +#define DEFAULT_SOCKET_DIR "@PGPOOL_SOCKETDIR@"
  12. /* Unix domain socket directory for watchdog IPC */
  13. -#define DEFAULT_WD_IPC_SOCKET_DIR "/tmp"
  14. +#define DEFAULT_WD_IPC_SOCKET_DIR "@PGPOOL_SOCKETDIR@"
  15. /* pid file name */
  16. -#define DEFAULT_PID_FILE_NAME "/var/run/pgpool/pgpool.pid"
  17. +#define DEFAULT_PID_FILE_NAME "@PGPOOL_SOCKETDIR@/pgpool.pid"
  18. /* status file name */
  19. #define STATUS_FILE_NAME "pgpool_status"
  20. diff -aruw pgpool-II-3.5.0.orig/src/sample/pgpool.conf.sample pgpool-II-3.5.0/src/sample/pgpool.conf.sample
  21. --- pgpool-II-3.5.0.orig/src/sample/pgpool.conf.sample 2016-02-10 03:53:31.000000000 -0500
  22. +++ pgpool-II-3.5.0/src/sample/pgpool.conf.sample 2016-03-12 08:55:22.318087007 -0500
  23. @@ -31,10 +31,8 @@
  24. port = 9999
  25. # Port number
  26. # (change requires restart)
  27. -socket_dir = '/tmp'
  28. +socket_dir = '@PGSQL_SOCKETDIR@'
  29. # Unix domain socket path
  30. - # The Debian package defaults to
  31. - # /var/run/postgresql
  32. # (change requires restart)
  33. listen_backlog_multiplier = 2
  34. # Set the backlog parameter of listen(2) to
  35. @@ -53,10 +51,8 @@
  36. pcp_port = 9898
  37. # Port number for pcp
  38. # (change requires restart)
  39. -pcp_socket_dir = '/tmp'
  40. +pcp_socket_dir = '@PGSQL_SOCKETDIR@'
  41. # Unix domain socket path for pcp
  42. - # The Debian package defaults to
  43. - # /var/run/postgresql
  44. # (change requires restart)
  45. # - Backend Connection Settings -
  46. @@ -214,10 +210,10 @@
  47. # FILE LOCATIONS
  48. #------------------------------------------------------------------------------
  49. -pid_file_name = '/var/run/pgpool/pgpool.pid'
  50. +pid_file_name = '@PGPOOL_SOCKETDIR@/pgpool.pid'
  51. # PID file name
  52. # (change requires restart)
  53. -logdir = '/var/log/pgpool'
  54. +logdir = '/var/lib/pgpool'
  55. # Directory of pgPool status file
  56. # (change requires restart)
  57. diff -aruw pgpool-II-3.5.0.orig/src/sample/pgpool.conf.sample-master-slave pgpool-II-3.5.0/src/sample/pgpool.conf.sample-master-slave
  58. --- pgpool-II-3.5.0.orig/src/sample/pgpool.conf.sample-master-slave 2016-02-10 03:53:31.000000000 -0500
  59. +++ pgpool-II-3.5.0/src/sample/pgpool.conf.sample-master-slave 2016-03-12 08:55:45.284665542 -0500
  60. @@ -31,10 +31,8 @@
  61. port = 9999
  62. # Port number
  63. # (change requires restart)
  64. -socket_dir = '/tmp'
  65. +socket_dir = '@PGSQL_SOCKETDIR@'
  66. # Unix domain socket path
  67. - # The Debian package defaults to
  68. - # /var/run/postgresql
  69. # (change requires restart)
  70. listen_backlog_multiplier = 2
  71. # Set the backlog parameter of listen(2) to
  72. @@ -53,10 +51,8 @@
  73. pcp_port = 9898
  74. # Port number for pcp
  75. # (change requires restart)
  76. -pcp_socket_dir = '/tmp'
  77. +pcp_socket_dir = '@PGSQL_SOCKETDIR@'
  78. # Unix domain socket path for pcp
  79. - # The Debian package defaults to
  80. - # /var/run/postgresql
  81. # (change requires restart)
  82. # - Backend Connection Settings -
  83. @@ -214,10 +210,10 @@
  84. # FILE LOCATIONS
  85. #------------------------------------------------------------------------------
  86. -pid_file_name = '/var/run/pgpool/pgpool.pid'
  87. +pid_file_name = '@PGPOOL_SOCKETDIR@/pgpool.pid'
  88. # PID file name
  89. # (change requires restart)
  90. -logdir = '/tmp'
  91. +logdir = '/var/lib/pgpool'
  92. # Directory of pgPool status file
  93. # (change requires restart)
  94. diff -aruw pgpool-II-3.5.0.orig/src/sample/pgpool.conf.sample-replication pgpool-II-3.5.0/src/sample/pgpool.conf.sample-replication
  95. --- pgpool-II-3.5.0.orig/src/sample/pgpool.conf.sample-replication 2016-02-10 03:53:31.000000000 -0500
  96. +++ pgpool-II-3.5.0/src/sample/pgpool.conf.sample-replication 2016-03-12 08:56:55.004397999 -0500
  97. @@ -31,10 +31,8 @@
  98. port = 9999
  99. # Port number
  100. # (change requires restart)
  101. -socket_dir = '/tmp'
  102. +socket_dir = '@PGSQL_SOCKETDIR@'
  103. # Unix domain socket path
  104. - # The Debian package defaults to
  105. - # /var/run/postgresql
  106. # (change requires restart)
  107. listen_backlog_multiplier = 2
  108. # Set the backlog parameter of listen(2) to
  109. @@ -53,10 +51,8 @@
  110. pcp_port = 9898
  111. # Port number for pcp
  112. # (change requires restart)
  113. -pcp_socket_dir = '/tmp'
  114. +pcp_socket_dir = '@PGSQL_SOCKETDIR@'
  115. # Unix domain socket path for pcp
  116. - # The Debian package defaults to
  117. - # /var/run/postgresql
  118. # (change requires restart)
  119. # - Backend Connection Settings -
  120. @@ -214,10 +210,10 @@
  121. # FILE LOCATIONS
  122. #------------------------------------------------------------------------------
  123. -pid_file_name = '/var/run/pgpool/pgpool.pid'
  124. +pid_file_name = '@PGPOOL_SOCKETDIR@/pgpool.pid'
  125. # PID file name
  126. # (change requires restart)
  127. -logdir = '/tmp'
  128. +logdir = '/var/lib/pgpool'
  129. # Directory of pgPool status file
  130. # (change requires restart)
  131. diff -aruw pgpool-II-3.5.0.orig/src/sample/pgpool.conf.sample-stream pgpool-II-3.5.0/src/sample/pgpool.conf.sample-stream
  132. --- pgpool-II-3.5.0.orig/src/sample/pgpool.conf.sample-stream 2016-02-10 03:53:31.000000000 -0500
  133. +++ pgpool-II-3.5.0/src/sample/pgpool.conf.sample-stream 2016-03-12 08:58:23.820723842 -0500
  134. @@ -31,10 +31,8 @@
  135. port = 9999
  136. # Port number
  137. # (change requires restart)
  138. -socket_dir = '/tmp'
  139. +socket_dir = '@PGSQL_SOCKETDIR@'
  140. # Unix domain socket path
  141. - # The Debian package defaults to
  142. - # /var/run/postgresql
  143. # (change requires restart)
  144. @@ -47,10 +45,8 @@
  145. pcp_port = 9898
  146. # Port number for pcp
  147. # (change requires restart)
  148. -pcp_socket_dir = '/tmp'
  149. +pcp_socket_dir = '@PGSQL_SOCKETDIR@'
  150. # Unix domain socket path for pcp
  151. - # The Debian package defaults to
  152. - # /var/run/postgresql
  153. # (change requires restart)
  154. listen_backlog_multiplier = 2
  155. # Set the backlog parameter of listen(2) to
  156. @@ -215,10 +211,10 @@
  157. # FILE LOCATIONS
  158. #------------------------------------------------------------------------------
  159. -pid_file_name = '/var/run/pgpool/pgpool.pid'
  160. +pid_file_name = '@PGPOOL_SOCKETDIR@/pgpool.pid'
  161. # PID file name
  162. # (change requires restart)
  163. -logdir = '/tmp'
  164. +logdir = '/var/lib/pgpool'
  165. # Directory of pgPool status file
  166. # (change requires restart)