pgsql: Doc: improve recommended systemd unit file. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Doc: improve recommended systemd unit file.
Date
Msg-id E1oid6D-0023sC-DD@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Doc: improve recommended systemd unit file.

Add
    After=network-online.target
    Wants=network-online.target
to the suggested unit file for starting a Postgres server.
This delays startup until the network interfaces have been
configured; without that, any attempt to bind to a specific
IP address will fail.

If listen_addresses is set to "localhost" or "*", it might be
possible to get away with the less restrictive "network.target",
but I don't think we need to get into such detail here.

Per suggestion from Pablo Federico.

Discussion: https://postgr.es/m/166552157407.591805.10036014441784710940@wrigleys.postgresql.org

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/59290b20aae73d334034d5a182eb0a2d7f451ebb

Modified Files
--------------
doc/src/sgml/runtime.sgml | 2 ++
1 file changed, 2 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Doc: improve recommended systemd unit file.
Next
From: Michael Paquier
Date:
Subject: pgsql: doc: Fix description of replication command CREATE_REPLICATION_S