From 6d63c0f9413e54c41c08b4046b46cce904a8a41c Mon Sep 17 00:00:00 2001 From: Gianni Ciolli Date: Wed, 6 Sep 2017 20:31:20 +0100 Subject: [PATCH] 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 --- repmgr.conf.sample | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/repmgr.conf.sample b/repmgr.conf.sample index dc6c53d7..c0003fe4 100644 --- a/repmgr.conf.sample +++ b/repmgr.conf.sample @@ -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