fix systemd service file
Task Info (Flyspray) | |
---|---|
Opened By | Norbert (Sandwich) |
Task ID | 79561 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-09-04 13:22:32 UTC |
Status | Assigned |
Assignee | Levente Polyak (anthraxx) |
Details
Description:
PostgreSQL fails to autostart in some cases due to Wants=network-online.target
missing in the postgresql.service
Since SystemD 209 this parameter is necessary for the service to wait for a full initialization of the network
Additional info:
- Issue mentioned here: https://www.postgresql.org/message-id/20180907143718.GF29573%40msg.df7cb.de
Steps to reproduce:
- Bind PostgreSQL to a second NIC
- Enable systemd service
- Restart system
- Notice Postgres failed to bind ip-address