mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 11:45:36 +02:00
68 lines
2.9 KiB
Diff
68 lines
2.9 KiB
Diff
--- a/repmgr.conf.sample
|
|
+++ b/repmgr.conf.sample
|
|
@@ -60,7 +60,7 @@
|
|
# Server settings
|
|
#------------------------------------------------------------------------------
|
|
|
|
-#config_directory='' # If configuration files are located outside the data
|
|
+config_directory='/etc/postgresql' # If configuration files are located outside the data
|
|
# directory, specify the directory where the main
|
|
# postgresql.conf file is located.
|
|
|
|
@@ -104,7 +104,7 @@
|
|
#log_level='INFO' # Log level: possible values are DEBUG, INFO, NOTICE,
|
|
# WARNING, ERROR, ALERT, CRIT or EMERG
|
|
|
|
-#log_facility='STDERR' # Logging facility: possible values are STDERR, or for
|
|
+log_facility='LOCAL0' # Logging facility: possible values are STDERR, or for
|
|
# syslog integration, one of LOCAL0, LOCAL1, ..., LOCAL7, USER
|
|
|
|
#log_file='' # STDERR can be redirected to an arbitrary file
|
|
@@ -393,27 +393,22 @@
|
|
# If you use sudo, the user repmgr runs as (usually 'postgres') must have
|
|
# passwordless sudo access to execute the command.
|
|
#
|
|
-# For example, to use systemd, you can set
|
|
+# For example, to use OpenRC, you can set
|
|
#
|
|
-# service_start_command = 'sudo systemctl start postgresql-16'
|
|
+# service_start_command = 'sudo /etc/init.d/postgresql start'
|
|
# (...)
|
|
#
|
|
-# and then use the following sudoers configuration:
|
|
+# and then use the following doas configuration (already installed in
|
|
+# /etc/doas.d/repmgr.conf):
|
|
#
|
|
-# # this is required when running sudo over ssh without -t:
|
|
-# Defaults:postgres !requiretty
|
|
-# postgres ALL = NOPASSWD: /usr/bin/systemctl stop postgresql-16, \
|
|
-# /usr/bin/systemctl start postgresql-16, \
|
|
-# /usr/bin/systemctl restart postgresql-16
|
|
+# permit nopass postgres as root cmd /etc/init.d/postgresql
|
|
#
|
|
-# Debian/Ubuntu users: use "sudo pg_ctlcluster" to execute service control commands.
|
|
-#
|
|
# For further 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 = '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
|
|
@@ -422,8 +417,8 @@
|
|
|
|
# Used by "repmgr service (start|stop)" to control repmgrd
|
|
#
|
|
-#repmgrd_service_start_command = ''
|
|
-#repmgrd_service_stop_command = ''
|
|
+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
|