pgpool_run_paths.patch 7.3 KB

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