aboutsummaryrefslogtreecommitdiffstats
path: root/community/repmgr/repmgr.conf.patch
diff options
context:
space:
mode:
authorDavid Arnold <dar@xoe.solutions>2018-01-30 14:20:57 -0500
committerJakub Jirutka <jakub@jirutka.cz>2018-03-30 17:36:38 +0200
commitdc23e56a1ed567ec1fe2f7aee7382a6f1c94e8b0 (patch)
tree20d9b535bc9e3b0de737cfc4b2830d19abaa7bbe /community/repmgr/repmgr.conf.patch
parenta387983bfeaf05ef9c1df5aa4d051f7ed9d7f4ac (diff)
downloadaports-dc23e56a1ed567ec1fe2f7aee7382a6f1c94e8b0.tar.bz2
aports-dc23e56a1ed567ec1fe2f7aee7382a6f1c94e8b0.tar.xz
community/repmgr: upgrade to 4.0.2
Review notes: Reverted -doc removal and fixed incomplete config patch. -jirutka
Diffstat (limited to 'community/repmgr/repmgr.conf.patch')
-rw-r--r--community/repmgr/repmgr.conf.patch50
1 files changed, 22 insertions, 28 deletions
diff --git a/community/repmgr/repmgr.conf.patch b/community/repmgr/repmgr.conf.patch
index ec0eff0f83..7c7735cce2 100644
--- a/community/repmgr/repmgr.conf.patch
+++ b/community/repmgr/repmgr.conf.patch
@@ -1,38 +1,32 @@
--- a/repmgr.conf.sample
+++ b/repmgr.conf.sample
-@@ -78,7 +78,7 @@
-
- # stderr can be redirected to an arbitrary file:
- #
--#logfile='/var/log/repmgr/repmgr.log'
-+logfile='/var/log/postgresql/repmgr.log'
-
- # event notifications can be passed to an arbitrary external program
- # together with the following parameters:
-@@ -121,19 +121,17 @@
+@@ -256,23 +256,21 @@
# If you use sudo, the user repmgr runs as (usually 'postgres') must have
- # passwordless sudo access to execute the command
+ # passwordless sudo access to execute the command.
#
--# For example, to use systemd, you may use the following configuration:
-+# For example, to use OpenRC, you may use the following configuration:
+-# For example, to use systemd, you can set
++# For example, to use OpenRC, you can set
+ #
+-# service_start_command = 'sudo systemctl start postgresql-9.6'
++# service_start_command = 'sudo /etc/init.d/postgresql start'
+ # (...)
+ #
+ # and then use the following sudoers configuration:
#
# # this is required when running sudo over ssh without -t:
# Defaults:postgres !requiretty
--# postgres ALL = NOPASSWD: /usr/bin/systemctl stop postgresql-9.5, \
--# /usr/bin/systemctl start postgresql-9.5, \
--# /usr/bin/systemctl restart postgresql-9.5
+-# postgres ALL = NOPASSWD: /usr/bin/systemctl stop postgresql-9.6, \
+-# /usr/bin/systemctl start postgresql-9.6, \
+-# /usr/bin/systemctl restart postgresql-9.6
+# postgres ALL = NOPASSWD: /etc/init.d/postgresql
#
--# service_start_command = systemctl start postgresql-9.5
--# service_stop_command = systemctl stop postgresql-9.5
--# service_restart_command = systemctl restart postgresql-9.5
--# service_reload_command = pg_ctlcluster 9.5 main reload
--# service_promote_command = pg_ctlcluster 9.5 main promote
-+service_start_command = /etc/init.d/postgresql start
-+service_stop_command = /etc/init.d/postgresql stop
-+service_restart_command = /etc/init.d/postgresql restart
-+# service_reload_command = pg_ctl reload
-+# service_promote_command = pg_ctl promote
-
- # external command options
+-#service_start_command = ''
+-#service_stop_command = ''
+-#service_restart_command = ''
++service_start_command = '/etc/init.d/postgresql start'
++service_stop_command = '/etc/init.d/postgresql stop'
++service_restart_command = '/etc/init.d/postgresql restart'
+ #service_reload_command = ''
+ #service_promote_command = '' # Note: this overrides any value contained in the setting
+ # "promote_command". This is intended for systems which