public inbox for [email protected]  
help / color / mirror / Atom feed
From: Martín Marqués <[email protected]>
To: Devrim GÜNDÜZ <[email protected]>
Cc: Jeff Frost <[email protected]>
Cc: Justin King <[email protected]>
Cc: pgsql-pkg-yum <[email protected]>
Subject: Re: repmgr.service
Date: Tue, 5 Jan 2016 12:26:18 -0300
Message-ID: <CAPdiE1z5wFQGJg+di-cxKbzdTxDnE7n9OEqv-OdE4cacLF1gYg@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CAL3i3zT1NXVTyO=jOSXTnj3Uch9T569-LMyehDrUYqn0X+g2=w@mail.gmail.com>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-pkg-yum>

Hi,

$MAINPID is a systemd special environment variable

http://www.freedesktop.org/software/systemd/man/systemd.service.html

====
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
===

We tell systemd how to get the PID with PIDFile=

Regards,


2016-01-05 12:18 GMT-03:00 Devrim GÜNDÜZ <[email protected]>:
>
> Hi,
>
> On Wed, 2015-12-30 at 17:40 -0300, Martín Marqués 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ÜNDÜZ
> Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
> PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
> Twitter: @DevrimGunduz , @DevrimGunduzTR
>
>



-- 
Martín Marqués                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-pkg-yum mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-yum




view thread (16+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: repmgr.service
  In-Reply-To: <CAPdiE1z5wFQGJg+di-cxKbzdTxDnE7n9OEqv-OdE4cacLF1gYg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox