aboutsummaryrefslogtreecommitdiffstats log msg author committer range
blob: 76f121d88a590a81252c43655f5f4552173de2e8 (plain) (blame)
 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 --- 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 @@ -382,27 +382,23 @@ # 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-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.6, \ -# /usr/bin/systemctl start postgresql-9.6, \ -# /usr/bin/systemctl restart postgresql-9.6 -# -# 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 -#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_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 @@ # 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' #------------------------------------------------------------------------------ # Status check thresholds