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 1hYwRS-0005DL-3B for pgsql-general@arkaria.postgresql.org; Thu, 06 Jun 2019 17:44:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hYwRQ-0004kJ-Hs for pgsql-general@arkaria.postgresql.org; Thu, 06 Jun 2019 17:44:44 +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 1hYwRP-0004SK-Mp for pgsql-general@lists.postgresql.org; Thu, 06 Jun 2019 17:44:44 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYwRM-0000bF-Kj for pgsql-general@postgresql.org; Thu, 06 Jun 2019 17:44:42 +0000 Received: by mail-qk1-x743.google.com with SMTP id s22so1975706qkj.12 for ; Thu, 06 Jun 2019 10:44:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=peoplecall-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=0vOjMMUC4QcmI9on7CwQrTtY+80lTIfcJewPXCzNYtE=; b=RWEidBCau/dJu6K9Ln+/kCY4l5R1mYGi3+Znas0vTs9gmarJ0OgFJ8yFFNHv9XitWN eP9p/yHat5xQUaziJ8EscpXHtfj81HpXBO2fWRjh9ape7CGOG8pwstIs1nfsZGBN2ufg v/fblQHpuxtS+as6ZTUMZCYtO5FzOs4gNtYKZpqZGSzfUxiql1YShvExyqwbQa835b98 dfOArSU1riHoY9DE4BBwATqGOMhe6EF7HEgVsYtmCRA/Sad0hVFMgR/ekJbXr+veAyZ+ iH25xW7bN8XfXRcPQ/XoLe7J5mKKePbk/o0R3jkXqHRjG2ikhktQ3gB4JN9lZBR3zSLj x7Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=0vOjMMUC4QcmI9on7CwQrTtY+80lTIfcJewPXCzNYtE=; b=lxtg1qqzJjt/Gpkch+p8X4k1p7bQSqP1c5JzGZffiNMFSveNOU+1QX1yuwZhwmrXNI ZJDBzKVSQJGOjL+1Hv9v0VSzJeKABt+U+61joKSxjpu+BGt2Iigb9AclOlps0dSxZPk9 zp688LhsSem+raoYn2ZoRkGUTjdF6vUrIRPKLGDueLtKxHZjOJrj+VHEmy4VIJyIL0CZ d8ttHLodp9/ol4ItdXno3IekbI0JSJRTVn+qQhevynIu/HxBkYPv8q+k69w0dzv7W5yE zB8psflrySddqcGLDw1gvj3VPHs0zzo7YysQI+MQDGZyXmgrffzAmg/ck+Ks9XCjtHgM dLPA== X-Gm-Message-State: APjAAAXaJ3upsuMN25UngrBomX44vsecSZ1uo+KSxaPjeieBkV3oBeTT BTKT6CONdaP7xdmJ5suNS7XdoGKuZHTRyk8BEtyEvA== X-Google-Smtp-Source: APXvYqy3xwkDySMPDcrmeu56QLrCNpQ4HL4PiIPmCJyxHhek+lxV0Fw4E9XMkTSxtMumAc/Plk94Qb8eYEpfhVH/KWY= X-Received: by 2002:a37:9cf:: with SMTP id 198mr19666624qkj.351.1559843079538; Thu, 06 Jun 2019 10:44:39 -0700 (PDT) MIME-Version: 1.0 References: <9568960c5376459183243e2bc4db6c14@msx.bala.susq.com> In-Reply-To: <9568960c5376459183243e2bc4db6c14@msx.bala.susq.com> From: Francisco Olarte Date: Thu, 6 Jun 2019 19:44:03 +0200 Message-ID: Subject: Re: Postgres 10.7 Systemd Startup Issue To: "Kelly, Kevin" Cc: "pgsql-general@postgresql.org" , "Lu, Dan" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Jun 6, 2019 at 6:57 PM Kelly, Kevin wrote: > We=E2=80=99re attempting to launch postgres via systemd and noticing that= when invoking via systemctl start postgres.service the prompt never return= s. 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. Th= e instance seems to be up and running just fine, we just never see the acti= ve (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. Forking means the usual server approach, server detachs and after ExecStart returns it is considered running. Simple is for not detaching. Your symptom seem to be caused by either using a execstart command which does not detach ( so forking waits forever for initialisation to finish ) or for not having done daemon-reload to systemd ( so you are still in notify mode and it is waiting forever for postgres to tell him it is ready ). > We=E2=80=99re running on top of a stock SLES12 SP3. Could someone assist = in tracking down why this service isn=E2=80=99t transitioning to the active= state? Try posting some log, the service file ( to know which command you use ), maybe a ps trace, but I would go for checking the two problems above first. My bet is on the second one ( and if it is that you'll have the surprise of it working after machine reboot ). Bear in mind many of us, althoguh wanting to help, do not even know what "stock SLES12 SP3" is, so no idea on systemd version and/or service files content. Francisco Olarte.