- Fix pid file path in init script.

- Fix spec file -- we don't use short_name macro in pgcore spec file.
- Create pgpool pid file directory.
- Fix stop/start routines, also improve init script a bit.
- Install conf files to a new directory (/etc/pgpool-II), and get rid of
    sample conf files.
This commit is contained in:
Devrim GÜNDÜZ 2009-03-22 23:56:40 +00:00
commit bd3d3b6d41
3 changed files with 88 additions and 49 deletions

View file

@ -1,24 +1,22 @@
--- pgpool.conf.sample.old 2008-08-12 08:26:07.000000000 +0300
+++ pgpool.conf.sample 2008-08-12 08:27:31.000000000 +0300
--- pgpool.conf.sample.old 2009-03-22 22:18:52.000000000 +0200
+++ pgpool.conf.sample 2009-03-22 22:46:20.000000000 +0200
@@ -12,16 +12,14 @@
# Port number for pgpool communication manager
pcp_port = 9898
-# Unix domain socket path. (The Debian package defaults to
-# /var/run/postgresql.)
-socket_dir = '/tmp'
+# Unix domain socket path.
+socket_dir = '/var/run'
+# Unix domain socket path.
socket_dir = '/tmp'
# Unix domain socket path for pgpool communication manager.
-# (Debian package defaults to /var/run/postgresql)
-pcp_socket_dir = '/tmp'
+pcp_socket_dir = '/var/run'
pcp_socket_dir = '/tmp'
-# Unix domain socket path for the backend. Debian package defaults to /var/run/postgresql!
-backend_socket_dir = '/tmp'
+# Unix domain socket path for the backend.
+backend_socket_dir = '/var/run'
+# Unix domain socket path for the backend.
+backend_socket_dir = '/var/run/pgpool'
# pgpool communication manager timeout. 0 means no timeout, but strongly not recommended!
pcp_timeout = 10
@ -27,7 +25,22 @@
# Logging directory
-logdir = '/tmp'
+logdir = '/var/run'
+logdir = '/var/log/pgpool'
# Replication mode
replication_mode = false
# pid file name
pid_file_name = '/var/run/pgpool/pgpool.pid'
@@ -166,10 +164,10 @@
# backend_hostname, backend_port, backend_weight
# here are examples
-#backend_hostname0 = 'host1'
-#backend_port0 = 5432
-#backend_weight0 = 1
-#backend_data_directory0 = '/data'
+backend_hostname0 = 'localhost'
+backend_port0 = 5432
+backend_weight0 = 1
+backend_data_directory0 = '/var/lib/pgsql/data'
#backend_hostname1 = 'host2'
#backend_port1 = 5433
#backend_weight1 = 1