]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Doc: improve recommended systemd unit file.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 12 Oct 2022 14:51:11 +0000 (10:51 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 12 Oct 2022 14:51:45 +0000 (10:51 -0400)
commit59290b20aae73d334034d5a182eb0a2d7f451ebb
tree8f13f1f6ae0aee6a543613765e55e68041cfb404
parent6c1de98bad93b6f12b5002b40c4a0cbd3adeafdb
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
doc/src/sgml/runtime.sgml