Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a9f7L-00085z-63 for pgsql-pkg-yum@arkaria.postgresql.org; Thu, 17 Dec 2015 20:25:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a9f7K-00051Q-Oa for pgsql-pkg-yum@arkaria.postgresql.org; Thu, 17 Dec 2015 20:25:38 +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 1a9f7H-0004yA-K7 for pgsql-pkg-yum@postgresql.org; Thu, 17 Dec 2015 20:25:35 +0000 Received: from smtp-out-05ss.arnet.com.ar ([200.45.0.198]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1a9f7D-0003c0-48 for pgsql-pkg-yum@postgresql.org; Thu, 17 Dec 2015 20:25:35 +0000 X-Arnet-Anti-Spam: Activado X-Arnet-AV: Activado X-IPAS-Result: A2AaBwC4GXNW/wLdqMBeDgsBAQEBDwEBAQGDClLANh2FcAKBPE0BAQEBAQGBC4Q1AQEEIw8BIzMLDQEMAgUWCwICCQMCAQIBJx4GAQsBCAEBGIgVq3qRfQEBCAIBIIEBilOHd4FJBZZ9jySERYJ1J5NeAmSCER2BGFgkhTEBAQE Received: from unknown (HELO smtp-client-01.arnet.com.ar) ([192.168.221.2]) by smtp-route-05.arnet.com.ar with ESMTP; 17 Dec 2015 17:25:21 -0300 X-IPAS-Result: A2ApBwAEGXNW/ygC/MleDoMsUsA2HYVwAoE8TQEBAQEBAYELhDUBAQQjDwEjMwsODAIFFgsCAgkDAgECASceBgELAQgBARiIFat6kX0BAQgCASCBAYpTh3eBSQWWfY8khEWCdZQFAmSCER2BGFgkhTEBAQE Received: from host40.201-252-2.telecom.net.ar (HELO mail.marquesminen.com.ar) ([201.252.2.40]) by smtp-client-01.arnet.com.ar with ESMTP; 17 Dec 2015 17:25:20 -0300 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.marquesminen.com.ar (Postfix) with ESMTP id 344D5120CFC; Thu, 17 Dec 2015 17:25:17 -0300 (ART) X-Virus-Scanned: amavisd-new at example.com Received: from mail.marquesminen.com.ar ([127.0.0.1]) by localhost (endor.marques [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VCXpPZ-ionev; Thu, 17 Dec 2015 17:25:13 -0300 (ART) Received: from alderaan.marques (unknown [192.168.0.41]) by mail.marquesminen.com.ar (Postfix) with ESMTP id 66612120C3C; Thu, 17 Dec 2015 17:25:13 -0300 (ART) Subject: Re: repmgr.service To: Justin King , pgsql-pkg-yum@postgresql.org References: From: =?UTF-8?Q?Mart=c3=adn_Marqu=c3=a9s?= X-Enigmail-Draft-Status: N1110 Message-ID: <56731A29.6080303@2ndquadrant.com> Date: Thu, 17 Dec 2015 17:25:13 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) 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 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@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-yum