--- a/repmgr.conf.sample +++ b/repmgr.conf.sample @@ -376,27 +376,25 @@ # 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 # # Debian/Ubuntu users: use "sudo pg_ctlcluster" to execute service control commands. # # 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 = '/etc/init.d/postgresql start' +service_stop_command = '/etc/init.d/postgresql stop' +service_restart_command = '/etc/init.d/postgresql restart' +service_reload_command = '/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