Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hZ2bE-0007OA-Bp for pgsql-general@arkaria.postgresql.org; Fri, 07 Jun 2019 00:19:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hZ2bD-0000a9-0Q for pgsql-general@arkaria.postgresql.org; Fri, 07 Jun 2019 00:19:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hZ2bC-0000T1-Hb for pgsql-general@lists.postgresql.org; Fri, 07 Jun 2019 00:19:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hZ2bA-0000yi-9f for pgsql-general@postgresql.org; Fri, 07 Jun 2019 00:19:13 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x570J8x6032292; Thu, 6 Jun 2019 20:19:09 -0400 From: Tom Lane To: Francisco Olarte cc: "Kelly, Kevin" , "pgsql-general@postgresql.org" , "Lu, Dan" Subject: Re: Postgres 10.7 Systemd Startup Issue In-reply-to: References: <9568960c5376459183243e2bc4db6c14@msx.bala.susq.com> Comments: In-reply-to Francisco Olarte message dated "Thu, 06 Jun 2019 19:44:03 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <5770.1559866748.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 06 Jun 2019 20:19:08 -0400 Message-ID: <5771.1559866748@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Francisco Olarte writes: > On Thu, Jun 6, 2019 at 6:57 PM Kelly, Kevin wrote: >> We=E2=80=99re attempting to launch postgres via systemd and noticing th= at when invoking via systemctl start postgres.service the prompt never ret= urns. 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 a= ctive (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