public inbox for [email protected]  
help / color / mirror / Atom feed
From: Justin King <[email protected]>
To: [email protected]
Subject: repmgr94
Date: Sat, 7 Nov 2015 16:53:20 -0500
Message-ID: <CAL3i3zQ1LPsFCwx2gL+9P28CspYF3vbZXdshDqxjTP213KiadA@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-pkg-yum>

Greetings,

The EL7 RPM for repmgr94 creates a new system user repmgr and has repmgrd
run as repmgr. Additionally when repmgr is invoked it expects read/write
over the postgres data directories and the ability to invoke pg_ctl using
system(...) which would require it to be either root or postgres. I took a
look through the source and it appears repmgrd invokes repmgr using
system(...) which would be running as the repmgr user and would fail. The
repmgr example spec files, readme/instructions, and the official
debian/ubuntu packages also assume repmgr and repmgrd run as postgres and
do not create a new user. They also place all of the repmgr binaries, log
file, and pid file in the same directories as postgres. If you used repmgr
without repmgrd you would not notice, or you would not notice until it
attempts to do automatic failover.

Justin


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: repmgr94
  In-Reply-To: <CAL3i3zQ1LPsFCwx2gL+9P28CspYF3vbZXdshDqxjTP213KiadA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox