Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zvm5w-00024O-AF for pgsql-pkg-yum@arkaria.postgresql.org; Mon, 09 Nov 2015 13:02:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zvm5v-0007JV-Kr for pgsql-pkg-yum@arkaria.postgresql.org; Mon, 09 Nov 2015 13:02:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zvm5v-0007JP-Bz for pgsql-pkg-yum@postgresql.org; Mon, 09 Nov 2015 13:02:47 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Zvm5q-0003Dr-L8 for pgsql-pkg-yum@postgresql.org; Mon, 09 Nov 2015 13:02:46 +0000 Received: by wmww144 with SMTP id w144so31268975wmw.0 for ; Mon, 09 Nov 2015 05:02:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lelarge_info.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NHbLFZQqi0UStGXj/Pd2zAkrUD28YO0YqrxS4m6U7rc=; b=PDwfU1Zq/aE7LRwbflrVevQ8PIjAMvKNc1r+bVvD6ZGeYTBo5Pwwr/VkRJdL3YNHUv FmTaLfGGh0HO1qtVd3AhSW4of3f3Ap9tIPYhkxjik2bVTC5x0z++omN+PERDHttAlark 6I/EbC0jCecQNEZVxU+mgFkJfHAaBCssQZQxjhlqOR/Xsf8aSbsXqFNZIlBWq5pdr84N 9SZvgQ60cJbQ02cYzFufywtmKGHA+e+jD6g5b81m8XSpr9rlljH/kUUtFMCZV9SgaetU 6fM6m/M/N1uLizjedpkg7meSA9YwmnpMu+XZ2bfvg37IJv3TUkTIeD2mf1lqY57c0qnL hPzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=NHbLFZQqi0UStGXj/Pd2zAkrUD28YO0YqrxS4m6U7rc=; b=HZT5O4vuQRpqjbzyLSgwtHQBxd2HALWSacznKeX7YJSYapKxG0l297de5D12npHNyo TGg56iaJGGFYooDxeHTfkK4RXN1uXxXDl8crVgCdfVIiAepdEzHwW+oXEhZ9aILLbXHC sP+U3zCZlW2Z4k8GeyCcqHIlWtoeJ7kC6O+llvnLD8udIy8jXIuVW0+h0eQmL6ONorri NOz0T4Pp2oVUdQCZJkphIvZVArSkWbsUKcPMi1QgfOHH0xI0Mqa3VrglAPgE+aD6rA89 gr0GMxWp38A6Te6g8mIpVCBq8AMYmXVrrZJvYCgRPnP6hMJqWMKIzeklCML53Jphzigv QUcg== X-Gm-Message-State: ALoCoQmph5cFYvr2qGkjn2+3lqZ56JfFODZLZnd2x4Ckztd6A8tHF67fk0ULWsfEDPYY7Y/owabp MIME-Version: 1.0 X-Received: by 10.28.145.132 with SMTP id t126mr24372393wmd.31.1447074161933; Mon, 09 Nov 2015 05:02:41 -0800 (PST) Received: by 10.194.186.239 with HTTP; Mon, 9 Nov 2015 05:02:41 -0800 (PST) Received: by 10.194.186.239 with HTTP; Mon, 9 Nov 2015 05:02:41 -0800 (PST) In-Reply-To: <1447060776.3130.15.camel@gunduz.org> References: <1447060776.3130.15.camel@gunduz.org> Date: Mon, 9 Nov 2015 14:02:41 +0100 Message-ID: Subject: Re: Bug in repmgr3 package From: Guillaume Lelarge To: =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= Cc: pgsql-pkg-yum Content-Type: multipart/alternative; boundary=001a11469af462d67b05241b350a X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-pkg-yum Precedence: bulk Sender: pgsql-pkg-yum-owner@postgresql.org --001a11469af462d67b05241b350a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le 9 nov. 2015 10:19 AM, "Devrim G=C3=9CND=C3=9CZ" a = =C3=A9crit : > > > > Hi Guillaume, > > Thanks for the patch! > > I committed your patch: > > http://git.postgresql.org/gitweb/?p=3Dpgrpms.git;a=3Dcommit;h=3D0cdf38c03= aebb > 45a40aa5895cf0753237320f164 > > I also changed the username from repmgr to postgres. I pushed this > change only to 9.5 for now. Will push and test packages today, and then > I'll update the remaining branches. > Great, thanks Devrim. > Regards, Devrim > > On Tue, 2015-11-03 at 15:42 +0100, Guillaume Lelarge wrote: > > Hey, > > > > 2015-11-03 10:54 GMT+01:00 Guillaume Lelarge > > : > > > > > Hi, > > > > > > When installing repmgr3 package on a CentOS 6 64 bits, I always end > > > up > > > with an error at postinstall saying that /var/run/repmgr doesn't > > > exist. > > > > > > Here is a patch that will hopefully fix that. (The patch deals with > > > all > > > distro for 9.4 release. I didn't check other releases.) > > > > > > > > I worked a bit more with repmgr. I found that the initscript doesn't > > respect the $user variable all the time. Hence this new patch (which > > includes the changes from the first patch). > > > > I'm also wondering why we do have this new OS user (repmgr). It seems > > to be > > more a burden than anything else. Actually, they have a much better > > initscript in upstream that makes use the postgres OS user. The RPM > > package > > should embrace that change. > > > > Regards. > > > > > > > > -- > Devrim G=C3=9CND=C3=9CZ > Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com > PostgreSQL Dan=C4=B1=C5=9Fman=C4=B1/Consultant, Red Hat Certified Enginee= r > Twitter: @DevrimGunduz , @DevrimGunduzTR > > --001a11469af462d67b05241b350a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Le=C2=A09 nov. 2015 10:19 AM, "Devrim G=C3=9CND=C3=9CZ&= quot; <devrim@gunduz.org> a = =C3=A9crit=C2=A0:
>
>
>
> Hi Guillaume,
>
> Thanks for the patch!
>
> I committed your patch:
>
> http://git.postgresql.org/gitweb/?p=3Dpgrpms.git;a=3Dco= mmit;h=3D0cdf38c03aebb
> 45a40aa5895cf0753237320f164
>
> =C2=A0I also changed the username from repmgr to postgres. I pushed th= is
> change only to 9.5 for now. Will push and test packages today, and the= n
> I'll update the remaining branches.
>

Great, thanks Devrim.

> Regards, Devrim
>
> On Tue, 2015-11-03 at 15:42 +0100, Guillaume Lelarge wrote:
> > Hey,
> >
> > 2015-11-03 10:54 GMT+01:00 Guillaume Lelarge <guillaume@lelarge.info>
> > :
> >
> > > Hi,
> > >
> > > When installing repmgr3 package on a CentOS 6 64 bits, I alw= ays end
> > > up
> > > with an error at postinstall saying that /var/run/repmgr doe= sn't
> > > exist.
> > >
> > > Here is a patch that will hopefully fix that. (The patch dea= ls with
> > > all
> > > distro for 9.4 release. I didn't check other releases.)<= br> > > >
> > >
> > I worked a bit more with repmgr. I found that the initscript does= n't
> > respect the $user variable all the time. Hence this new patch (wh= ich
> > includes the changes from the first patch).
> >
> > I'm also wondering why we do have this new OS user (repmgr). = It seems
> > to be
> > more a burden than anything else. Actually, they have a much bett= er
> > initscript in upstream that makes use the postgres OS user. The R= PM
> > package
> > should embrace that change.
> >
> > Regards.
> >
> >
>
>
>
> --
> Devrim G=C3=9CND=C3=9CZ
> Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
> PostgreSQL Dan=C4=B1=C5=9Fman=C4=B1/Consultant, Red Hat Certified Engi= neer
> Twitter: @DevrimGunduz , @DevrimGunduzTR
>
>

--001a11469af462d67b05241b350a--