pgsql: Doc: improve recommended systemd unit file.

Started by Tom Lanealmost 4 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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: /messages/by-id/166552157407.591805.10036014441784710940@wrigleys.postgresql.org

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/42d203ccfa8741ca8086e33f98aaa6c169063ef7

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