diff options
| author | Tom Lane | 2022-10-12 14:51:11 +0000 |
|---|---|---|
| committer | Tom Lane | 2022-10-12 14:51:45 +0000 |
| commit | 59290b20aae73d334034d5a182eb0a2d7f451ebb (patch) | |
| tree | 8f13f1f6ae0aee6a543613765e55e68041cfb404 /doc/src | |
| parent | 6c1de98bad93b6f12b5002b40c4a0cbd3adeafdb (diff) | |
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
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/runtime.sgml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 1e3825b9686..d405d55785f 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -402,6 +402,8 @@ fi [Unit] Description=PostgreSQL database server Documentation=man:postgres(1) +After=network-online.target +Wants=network-online.target [Service] Type=notify |
