Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZxTiz-0006QC-5W for pgsql-pkg-yum@arkaria.postgresql.org; Sat, 14 Nov 2015 05:50:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZxTix-0000lG-81 for pgsql-pkg-yum@arkaria.postgresql.org; Sat, 14 Nov 2015 05:50:07 +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 1ZxQ7q-0007Nb-Bp for pgsql-pkg-yum@postgresql.org; Sat, 14 Nov 2015 01:59:34 +0000 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZxQ7m-00053O-Pw for pgsql-pkg-yum@postgresql.org; Sat, 14 Nov 2015 01:59:33 +0000 Received: by qkao63 with SMTP id o63so66096787qka.2 for ; Fri, 13 Nov 2015 17:59:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mtu_edu.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:content-type; bh=9Xf19vfIWTLjXhWLjqgWWvIR++e1x1+SmPYvWty6Cd4=; b=tmIB9dhadnhamnP27MKEcsSJcLHfF0zdDj/4wiOHWpjHr+8tZvDd+3BOt/pwDVD+Ie xSHToFOfhGlbF6ag3YenoGB83gAjgZoblALoPUwY2ZiJe8h7tfojrXJw9ktqyc4QR7Qf Qr/IkDp8XFDNNblKQ1fjdh2HH+jreTP/HUh9k8jgdbBMxtb+utG0B8fjj7TCAKXg3MoN uCU24KrBrBYj1Lb/dKahBMXs37TnQT56xcDGO+K/8Zjgw5ox27o0pISRaDgVWkrW+Z6b 9WGRm1th7HuTGPalDvMw3d2qm223bZ2iiT0eKCtb5IKbNgGbyFbHe0aVRGQ+BtwE9Uxb t9RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=9Xf19vfIWTLjXhWLjqgWWvIR++e1x1+SmPYvWty6Cd4=; b=JStbk5wHZTqI+Q5hvMRkuV5DKJfFYNVIuVWQdDaYZhSPtu/jb2maZ2PetsVd/CvBPH RGOc6zQ8AGGPOFMfMlyWt+5muarm6KYBktUpUuyo8XO2fAlxtpFURfUZrDQF3pUIxbMl dH/KrWd1+LboxG7pNhJapVD0IZrIs+y5zedTyga2GDTJ4v8D5Of+L1akQOCokJBW3d/z EP1UukHl8aumb0YY0pJCA6cUu5Dn4nTHknG7cYJwvF3Ob48+l/XhckT0cpsC59k6SD3n AykAGoGMLkRa9H/d6mKB/zquTNtI7MEbylEVDRlS2zfHPTKkauUnKWYgP6C5JalOdjIr shcA== X-Gm-Message-State: ALoCoQlekpK/8Ix+GaYOS2AjI4BPb73yIb/FL197olrf0YtmYp2f6NrwXCOBm6hmILvjpcYWX2He MIME-Version: 1.0 X-Received: by 10.55.23.170 with SMTP id 42mr24760648qkx.42.1447466367945; Fri, 13 Nov 2015 17:59:27 -0800 (PST) Received: by 10.55.178.193 with HTTP; Fri, 13 Nov 2015 17:59:27 -0800 (PST) Date: Fri, 13 Nov 2015 20:59:27 -0500 Message-ID: Subject: repmgr.service From: Justin King To: pgsql-pkg-yum@postgresql.org Content-Type: multipart/alternative; boundary=001a11473f94afa4c80524768635 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 --001a11473f94afa4c80524768635 Content-Type: text/plain; charset=UTF-8 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 --001a11473f94afa4c80524768635 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Please modify the repmgr-9.x.service files for the package= s.

The service files currently have:

=
ExecStop=3D/usr/bin/ki= ll -TERM ${PIDFILE}
ExecReloa= d=3D/usr/bin/kill -HUP ${PIDFILE}

/b= in/kill does not accept files, you may be thinking of /bin/pkill -f=C2=A0

Replace them with:

=
ExecStop=3D/usr/b= in/kill -TERM $MAINPID
ExecRe= load=3D/usr/bin/kill -HUP $MAINPID

$= MAINPID is a special systemd provided variable that references the known PI= D of the process=C2=A0

And add the following= under the [Service] section:

PIDFile=3D/var/run/repmgr/repmgrd-9.x.pid

This prevents systemd from guessing=C2=A0= what the PID is and being wrong when Type=3Dforking=C2=A0

As it stands now `systemctl stop repmgrd` and `systemctl reload rep= mgrd` will always fail.

Justin
--001a11473f94afa4c80524768635--