From: Tom Lane <tgl@sss.pgh.pa.us>
To: Francisco Olarte <folarte@peoplecall.com>
Cc: Kelly, Kevin <Kevin.Kelly@sig.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: Lu, Dan <Dan.Lu@sig.com>
Subject: Re: Postgres 10.7 Systemd Startup Issue
Date: Thu, 06 Jun 2019 20:19:08 -0400
Message-ID: <5771.1559866748@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+bJJbxuWr52YYa++tjpL6LUrGXkWeWaa9FOYQORcEOP=m-Rfw@mail.gmail.com>
References: <9568960c5376459183243e2bc4db6c14@msx.bala.susq.com>
<CA+bJJbxuWr52YYa++tjpL6LUrGXkWeWaa9FOYQORcEOP=m-Rfw@mail.gmail.com>
Francisco Olarte <folarte@peoplecall.com> writes:
> On Thu, Jun 6, 2019 at 6:57 PM Kelly, Kevin <Kevin.Kelly@sig.com> wrote:
>> We’re attempting to launch postgres via systemd and noticing that when invoking via systemctl start postgres.service the prompt never returns. If we switch to another tty and check the status it shows as:
>> Active: activating (start) since Thu 2019-06-06 09:36:32 EDT; 12min ago
>> If we change the type from notify to forking we see the same behavior. The instance seems to be up and running just fine, we just never see the active (running) status as we have come to expect.
> Are you sure you have the postgres.service correctly configured? ( or
> you could post the ExecStart/Type config, or the whole service file ).
> The type tells systemd how to know the service has finished starting
> and is running, notify means it does systemd integration via socket,
> with IIRC postgres does not.
I might be confusing this with some other issue, but I think PG does
support systemd notification if you build it with the --with-systemd
configuration option. This is recommended if you're using systemd
to launch PG, because systemd's other options for figuring out the
service state work substantially less well.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, folarte@peoplecall.com, Kevin.Kelly@sig.com, Dan.Lu@sig.com
Subject: Re: Postgres 10.7 Systemd Startup Issue
In-Reply-To: <5771.1559866748@sss.pgh.pa.us>
References: <9568960c5376459183243e2bc4db6c14@msx.bala.susq.com> <CA+bJJbxuWr52YYa++tjpL6LUrGXkWeWaa9FOYQORcEOP=m-Rfw@mail.gmail.com> <5771.1559866748@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox