8000 Doc: improve recommended systemd unit file. · postgres/postgres@59290b2 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 59290b2

Browse files
committed
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
1 parent 6c1de98 commit 59290b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/src/sgml/runtime.sgml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ fi
402402
[Unit]
403403
Description=PostgreSQL database server
404404
Documentation=man:postgres(1)
405+
After=network-online.target
406+
Wants=network-online.target
405407

406408
[Service]
407409
Type=notify

0 commit comments

Comments
 (0)
0