Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aGTVC-0000G7-21 for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 05 Jan 2016 15:26:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aGTVA-0000Yq-U3 for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 05 Jan 2016 15:26:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aGTVA-0000YB-Fg for pgsql-pkg-yum@postgresql.org; Tue, 05 Jan 2016 15:26:24 +0000 Received: from mail-vk0-x229.google.com ([2607:f8b0:400c:c05::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aGTV6-0001oR-S3 for pgsql-pkg-yum@postgresql.org; Tue, 05 Jan 2016 15:26:22 +0000 Received: by mail-vk0-x229.google.com with SMTP id a123so109693541vkh.1 for ; Tue, 05 Jan 2016 07:26:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=GPZqus7nrTK2K2jXCehcg1I9Ap9+v7adbFS5Ei9LT6w=; b=bOyOji+7L2buJXac6i7QRz8+hAK4hy8GPr34eKKEIxBrWFIcd1k/rf/pe+lsHyJ8VG U0sulnLtQYCsYar+Rt7yYi2Zxv2qH20jRbrOGzOgm3VbtJhXnZ/qH+jOvlQLdXzGpZLc CVzmKEoO9ar04VNKLGSW5uzpRCWE7xiPx4rgZPAjhLi8oBg/jdCJZ5HACvoL0lhxRutn 1FKku2pD0oA+n33J+y28/Aua2SrwaAz8X3ZRCEgDOh4aRAAeeIlqTtCIIHUk1y0Z0A2+ 5OkTylEE2EBXl86zLtK0Vea9dkp4MoqxWqB1L27COIcckNfCH38ABBanQEV3urQkoOvQ tjAg== 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 :content-transfer-encoding; bh=GPZqus7nrTK2K2jXCehcg1I9Ap9+v7adbFS5Ei9LT6w=; b=kMcr2N0uS6+K5kL1yXE2MfqV0Yd4Q/4uEGM8bRWxVzTkolocn9LQpt3iWhgNAj5P+t eg/ll4WPbTfTIRs3iVqwUKTU/A0ZbDgxg8ALkZ72PZimnpS/A44TNKpmEfm/D5qB8vQr 5fLpNx/iCw2NDcHC0KH7L1/Eok/8ymAxfhpanW2zY5HSxkeKThjaYahBzyIXc4T2p4M6 DhmVqZmivnCktsN4gQWlGOaj8qRveGC2A68eoPntvRs0IdoWxeXARs4vw0B+L1yioPDL Hj1CVHjTwczqzyqeai2raCvsBD/5l3cDd7WFJ+wKvXvpqj7pS1Ldf9KQVnl0CrFq8rNW 1Etw== X-Gm-Message-State: ALoCoQkgt43cAMi2366pnPkYgKQNWjgJkVOvPxw9GHZhpX9gEVeTcQ7YfOqOBvGh2CQiqzTtKeZWobri5ZEKB4SNlRpV4LG++9yqp1rD539iR5hAgiRzsdE= MIME-Version: 1.0 X-Received: by 10.31.52.147 with SMTP id b141mr58495111vka.82.1452007578953; Tue, 05 Jan 2016 07:26:18 -0800 (PST) Received: by 10.31.236.3 with HTTP; Tue, 5 Jan 2016 07:26:18 -0800 (PST) In-Reply-To: <1452007121.8584.46.camel@gunduz.org> References: <56731A29.6080303@2ndquadrant.com> <8DCBFCBE-86BD-46D9-B089-B8FD049C0BA1@pgexperts.com> <56844154.9030804@2ndquadrant.com> <1452007121.8584.46.camel@gunduz.org> Date: Tue, 5 Jan 2016 12:26:18 -0300 Message-ID: Subject: Re: repmgr.service From: =?UTF-8?B?TWFydMOtbiBNYXJxdcOpcw==?= To: =?UTF-8?B?RGV2cmltIEfDnE5Ew5xa?= Cc: Jeff Frost , Justin King , pgsql-pkg-yum Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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, $MAINPID is a systemd special environment variable http://www.freedesktop.org/software/systemd/man/systemd.service.html =3D=3D=3D=3D One additional, special environment variable is set: if known, $MAINPID is set to the main process of the daemon, and may be used for command lines like the following: /bin/kill -HUP $MAINPID =3D=3D=3D We tell systemd how to get the PID with PIDFile=3D Regards, 2016-01-05 12:18 GMT-03:00 Devrim G=C3=9CND=C3=9CZ : > > Hi, > > On Wed, 2015-12-30 at 17:40 -0300, Mart=C3=ADn Marqu=C3=A9s wrote: >> Promised patch. Let me know if there's something to fix. > > I think this patch needs an update -- what is MAINPID variable? I don't > think it is defined elsewhere. Am I wrong? > > Still, this patch already seems to be applied to 9.5. Can you please > confirm? If 9.5 branch looks good, I'll push it to other releases as > well. > > 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 Engineer > Twitter: @DevrimGunduz , @DevrimGunduzTR > > --=20 Mart=C3=ADn Marqu=C3=A9s http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --=20 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