--- a/repmgr.conf.sample +++ b/repmgr.conf.sample @@ -256,23 +256,21 @@ # 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 +# postgres ALL = NOPASSWD: /etc/init.d/postgresql # -#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