From 9d25544ab5ad5bd58bb9b607c40202f61494ae3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Marqu=C3=A9s?= Date: Thu, 14 Dec 2017 14:39:22 -0300 Subject: [PATCH] Add more information to the setting up sudo without requiretty in the documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martín Marqués --- doc/switchover.sgml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/switchover.sgml b/doc/switchover.sgml index 2073ec2b..ec834102 100644 --- a/doc/switchover.sgml +++ b/doc/switchover.sgml @@ -73,6 +73,11 @@ systemctl commands (typically run via sudo) to ensure systemd informed about the status of the PostgreSQL service. + + If using sudo for the systemctl calls, make sure the + sudo specification doesn't require a real tty for the user. If not set + this way, repmgr will fail to stop the primary. + Check that access from applications is minimalized or preferably blocked