Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dbDEJ-0001eq-Ge for pgsql-admin@arkaria.postgresql.org; Fri, 28 Jul 2017 21:55:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dbDEI-0004J2-Uk for pgsql-admin@arkaria.postgresql.org; Fri, 28 Jul 2017 21:55:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dbDEI-0004IC-1a for pgsql-admin@postgresql.org; Fri, 28 Jul 2017 21:55:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dbDEF-0006Xj-1h for pgsql-admin@postgresql.org; Fri, 28 Jul 2017 21:55:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v6SLtQev020000; Fri, 28 Jul 2017 17:55:26 -0400 From: Tom Lane To: lejeczek cc: pgsql-admin@postgresql.org Subject: Re: pgdg96 repo with centos 7.x - server starts only on loopback In-reply-to: <14ccdc33-9442-5955-ebdd-4a68a43f5102@yahoo.co.uk> References: <14ccdc33-9442-5955-ebdd-4a68a43f5102@yahoo.co.uk> Comments: In-reply-to lejeczek message dated "Fri, 28 Jul 2017 15:59:52 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19998.1501278926.1@sss.pgh.pa.us> Date: Fri, 28 Jul 2017 17:55:26 -0400 Message-ID: <19999.1501278926@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org lejeczek writes: > I'm using PostgreSQL 9.6 7 - x86_64 repo with centos 7.3. > Configuration pretty standard, including this among the lines: > ... > listen_addresses = 'localhost, 192.168.2.200, 10.5.6.100' > ... > and yet, after system reboot I get process listening only on: > tcp 0 0 127.0.0.1:15432 0.0.0.0:* > LISTEN 5373/postmaster > tcp6 0 0 ::1:15432 :::* LISTEN > 5373/postmaster > What can be wrong? Looking into the postmaster's log would be informative, but I suspect what is happening is that systemd is allowing the postmaster to start before those non-default interfaces are up. This is one of the ways systemd sucks :-( ... it's actually quite hard to prevent that. "After=network.target" does *not* do it, at least not without munging the definition of that target. I don't offhand recall the solution for this, but it's a systemd question not a Postgres question. Googling on that basis might help. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin