Small clarification on sudo-based configuration (#1)

Now we are more explicit on what we recommend for the various
service_X_command settings when using sudo.

Signed-off-by: Gianni Ciolli <gianni.ciolli@2ndQuadrant.com>
This commit is contained in:
Gianni Ciolli
2017-09-06 20:31:20 +01:00
parent ee7a5b6e66
commit 6d63c0f941

View File

@@ -242,7 +242,12 @@ ssh_options='-q' # Options to append to "ssh"
# 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 may use the following configuration:
# For example, to use systemd, you can set
#
# service_start_command = 'sudo systemctl start postgresql-9.6'
# (...)
#
# and then use the following sudoers configuration:
#
# # this is required when running sudo over ssh without -t:
# Defaults:postgres !requiretty