public inbox for [email protected]
help / color / mirror / Atom feedFrom: Martín Marqués <[email protected]>
To: Justin King <[email protected]>
To: [email protected]
Subject: Re: repmgr.service
Date: Thu, 17 Dec 2015 17:25:13 -0300
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAL3i3zT1NXVTyO=jOSXTnj3Uch9T569-LMyehDrUYqn0X+g2=w@mail.gmail.com>
References: <CAL3i3zT1NXVTyO=jOSXTnj3Uch9T569-LMyehDrUYqn0X+g2=w@mail.gmail.com>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-pkg-yum>
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 ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-yum
view thread (16+ messages) latest in thread
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]
Subject: Re: repmgr.service
In-Reply-To: <[email protected]>
* 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