aboutsummaryrefslogtreecommitdiffstats
path: root/community/repmgr/repmgr.conf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/repmgr/repmgr.conf.patch')
-rw-r--r--community/repmgr/repmgr.conf.patch22
1 files changed, 11 insertions, 11 deletions
diff --git a/community/repmgr/repmgr.conf.patch b/community/repmgr/repmgr.conf.patch
index 76f121d88a5..c4ed69d0139 100644
--- a/community/repmgr/repmgr.conf.patch
+++ b/community/repmgr/repmgr.conf.patch
@@ -1,5 +1,5 @@
---- a/repmgr.conf.sample
-+++ b/repmgr.conf.sample
+--- a/repmgr.conf.sample 2022-05-25 08:59:51.000000000 +0200
++++ b/repmgr.conf.sample 2022-07-09 18:14:43.340004816 +0200
@@ -60,7 +60,7 @@
# Server settings
#------------------------------------------------------------------------------
@@ -18,7 +18,7 @@
# syslog integration, one of LOCAL0, LOCAL1, ..., LOCAL7, USER
#log_file='' # STDERR can be redirected to an arbitrary file
-@@ -382,27 +382,23 @@
+@@ -383,27 +383,23 @@ ssh_options='-q -o ConnectTimeout=10' #
# If you use sudo, the user repmgr runs as (usually 'postgres') must have
# passwordless sudo access to execute the command.
#
@@ -40,27 +40,27 @@
-# Debian/Ubuntu users: use "sudo pg_ctlcluster" to execute service control commands.
+# postgres ALL = NOPASSWD: /etc/init.d/postgresql
#
- # For more details, see: https://repmgr.org/docs/current/configuration-service-commands.html
+ # For more details, see: https://repmgr.org/docs/current/configuration-file-service-commands.html
-#service_start_command = ''
-#service_stop_command = ''
-#service_restart_command = ''
-#service_reload_command = ''
-+service_start_command = 'sudo /etc/init.d/postgresql start'
-+service_stop_command = 'sudo /etc/init.d/postgresql stop'
-+service_restart_command = 'sudo /etc/init.d/postgresql restart'
-+service_reload_command = 'sudo /etc/init.d/postgresql reload'
++service_start_command = 'doas -n /etc/init.d/postgresql start'
++service_stop_command = 'doas -n /etc/init.d/postgresql stop'
++service_restart_command = 'doas -n /etc/init.d/postgresql restart'
++service_reload_command = 'doas -n /etc/init.d/postgresql reload'
#service_promote_command = '' # This parameter is intended for systems which provide a
# package-level promote command, such as Debian's
# "pg_ctlcluster". *IMPORTANT*: it is *not* a substitute
-@@ -411,8 +407,8 @@
+@@ -412,8 +408,8 @@ ssh_options='-q -o ConnectTimeout=10' #
# Used by "repmgr service (start|stop)" to control repmgrd
#
-#repmgrd_service_start_command = ''
-#repmgrd_service_stop_command = ''
-+repmgrd_service_start_command = 'sudo /etc/init.d/repmgrd start'
-+repmgrd_service_stop_command = 'sudo /etc/init.d/repmgrd stop'
++repmgrd_service_start_command = 'doas -n /etc/init.d/repmgrd start'
++repmgrd_service_stop_command = 'doas -n /etc/init.d/repmgrd stop'
#------------------------------------------------------------------------------
# Status check thresholds