Re: New repmgr packages

From: Martín Marqués <martin(at)2ndquadrant(dot)com>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: pgsql-pkg-yum(at)postgresql(dot)org, christian(at)2ndquadrant(dot)com, Jaime Casanova <jaime(at)2ndquadrant(dot)com>
Subject: Re: New repmgr packages
Date: 2014-03-25 21:44:29
Message-ID: 5331F8BD.2080508@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ups, forgot to send these files I made last week.

repmgr.init is the init file, and repmgr.sysconfig is the sysconfig file.

Add the Sources:

Source1: repmgrd.init
Source2: repmgrd.sysconfig

Lines added to %install are:

# Install init script
install -p -d %{buildroot}%{_initrddir}
install -p -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/repmgrd
# Install conf file
install -p -d %{buildroot}%{_sysconfdir}/sysconfig
install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/repmgrd

I've tested them and they work great, as long as you configure
/etc/sysconfig/repmgrd first.

Regards,

- --
Martín Marqués http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTMfi1AAoJEHsDtEgBAFTSAy4H/jJc8gGdm6pFo8Arev1pEGNy
mtQQ2kviGOXm48BKMKS1R+PzFvuPhY64wOo/3rQAQyr/8UlyzyBcTeIAU/cW0dWF
9tR2+scHnhTfRu0PQi3jqkuGlU2rki52WCR0Vx66Zy73FbkC05j31CtaG3VE8bS7
jAa66qBNBYv7dT+ZORHMRQh4+1HKFl0yviFRXI6/vIHySOMLv94OSNX8hZZdUZ3F
xLqCvgywe/FvGxUfTCTNh0jHvIGFMsBt71eukxPCUQtVQik1hLeS3on9enmIxp92
j0YsRGrKZLEX6VFzTHjjJTRuH90fDHIlk0qlgcRbcF10MxT6ZQiJdC+XcfHA0Yo=
=iPZW
-----END PGP SIGNATURE-----

Attachment Content-Type Size
repmgrd.init text/plain 2.7 KB
repmgrd.sysconfig text/plain 519 bytes

In response to

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2014-04-02 12:30:20 Moving to git
Previous Message Martín Marqués 2014-03-25 21:03:42 Re: New repmgr packages