pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: pablito.federico@gmail.com
Subject: Server start with systemd and configured with IP address
Date: Tue, 11 Oct 2022 20:52:54 +0000
Message-ID: <166552157407.591805.10036014441784710940@wrigleys.postgresql.org> (raw)

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/14/server-start.html
Description:

The url of the document is
https://www.postgresql.org/docs/current/server-start.html
My suggestion is add to the documentation in the segment that shows the
systemd entry inside the [Unit] segment the line
After=network-online.target

I saw in several sites that most people recommends using
After=network.target

but this will fail if the server is configured to listen on a specific IP
address instead of just localhost or 127.0.0.1
the differences between them is explained here
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/#conceptsinsystemd
TLDR; network.target is after the network is up (but presumably without
address set, just the network stack)  and network-online.target is after an
IP address has been set.

Best Regards
Pablo.


view thread (2+ messages)  latest in thread

Message-ID: <166552157407.591805.10036014441784710940@wrigleys.postgresql.org>
Permalink:  ../166552157407.591805.10036014441784710940@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/166552157407.591805.10036014441784710940@wrigleys.postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, pablito.federico@gmail.com
  Subject: Re: Server start with systemd and configured with IP address
  In-Reply-To: <166552157407.591805.10036014441784710940@wrigleys.postgresql.org>

* 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