pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Cannot connect to postgresql-11 from another machine after boot
Date: Sat, 22 Feb 2020 23:32:25 +0100
Message-ID: <20200222223225.GD12464@hjp.at> (raw)
In-Reply-To: <CAEk9e3qXnS03d-cQLrOC78ZxufGoDZXg1b=bdm+hFQNdMifPXQ@mail.gmail.com>
References: <CAEk9e3pcmikJRo6cQ0COHpu_Z9gLLUeX=tY1w1qOVpzUehCB9A@mail.gmail.com>
	<4e04fcba-2921-df12-c1a5-7a3eb5afb1eb@aklaver.com>
	<b9f567c2-26e9-4ffe-1630-d7994e32c673@aklaver.com>
	<20200216135121.GA10553@hjp.at>
	<CAEk9e3qXnS03d-cQLrOC78ZxufGoDZXg1b=bdm+hFQNdMifPXQ@mail.gmail.com>

On 2020-02-17 10:17:41 -0500, Jason Swails wrote:
> I then added "network.target", "networking.service", and
> "network-online.target" to the After line of the postgresql.service systemd
> file, but it still didn't fix the problem.

After=network-online.target should be correct.

However, see
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ for an
explanation why "the network is online" is not as simple as it looks and
how to ensure that.

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (7+ messages)

Message-ID: <20200222223225.GD12464@hjp.at>
Permalink:  ../20200222223225.GD12464@hjp.at/
Also on:    postgresql.org/message-id/20200222223225.GD12464@hjp.at

 · 

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 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: hjp-pgsql@hjp.at
  Subject: Re: Cannot connect to postgresql-11 from another machine after boot
  In-Reply-To: <20200222223225.GD12464@hjp.at>
  References: <CAEk9e3pcmikJRo6cQ0COHpu_Z9gLLUeX=tY1w1qOVpzUehCB9A@mail.gmail.com> <4e04fcba-2921-df12-c1a5-7a3eb5afb1eb@aklaver.com> <b9f567c2-26e9-4ffe-1630-d7994e32c673@aklaver.com> <20200216135121.GA10553@hjp.at> <CAEk9e3qXnS03d-cQLrOC78ZxufGoDZXg1b=bdm+hFQNdMifPXQ@mail.gmail.com> <20200222223225.GD12464@hjp.at>

* 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