Re: repmgr.service

From: Jeff Frost <jeff(at)pgexperts(dot)com>
To: Martín Marqués <martin(at)2ndquadrant(dot)com>
Cc: Justin King <jcking(at)mtu(dot)edu>, pgsql-pkg-yum(at)postgresql(dot)org
Subject: Re: repmgr.service
Date: 2015-12-23 02:52:42
Message-ID: 8DCBFCBE-86BD-46D9-B089-B8FD049C0BA1@pgexperts.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum

Sorry for the slow reply on this.

We did make some changes recently, but it seems this was not one of them.

A patch would definitely speed us up and would be most welcome!

> On Dec 17, 2015, at 12:25 PM, Martín Marqués <martin(at)2ndquadrant(dot)com> wrote:
>
> Hi,
>
> I see this hasn't been committed yet into the pgrpms git repo.
>
> Is it under review? If so I can say the changes are good, and if needed
> I can send over a patch for easy applying.
>
> Regards,
>
>
> El 13/11/15 a las 22:59, Justin King escribió:
>> Please modify the repmgr-9.x.service files for the packages.
>>
>> The service files currently have:
>>
>> ExecStop=/usr/bin/kill -TERM ${PIDFILE}
>> ExecReload=/usr/bin/kill -HUP ${PIDFILE}
>>
>>
>> /bin/kill does not accept files, you may be thinking of /bin/pkill -f
>>
>> Replace them with:
>>
>> ExecStop=/usr/bin/kill -TERM $MAINPID
>> ExecReload=/usr/bin/kill -HUP $MAINPID
>>
>>
>> $MAINPID is a special systemd provided variable that references the
>> known PID of the process
>>
>> And add the following under the [Service] section:
>>
>> PIDFile=/var/run/repmgr/repmgrd-9.x.pid
>>
>>
>> This prevents systemd from guessing what the PID is and being wrong when
>> Type=forking
>>
>> As it stands now `systemctl stop repmgrd` and `systemctl reload repmgrd`
>> will always fail.
>>
>> Justin
>
>
> --
> Martín Marqués http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
>
>
> --
> Sent via pgsql-pkg-yum mailing list (pgsql-pkg-yum(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-pkg-yum

---
Jeff Frost <jeff(at)pgexperts(dot)com>
Director, PostgreSQL Experts, Inc.
Phone: 1-888-PG-EXPRT x506
FAX: 415-762-5122
http://www.pgexperts.com/

In response to

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Vítězslav Košina 2015-12-23 16:38:57 Problem with plpgsql_check package in PostgreSQL 9.5RC1
Previous Message Kjetil Nygård 2015-12-18 21:32:34 postgis for Fedora 23