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:

Steps to reproduce:

  1. Bind PostgreSQL to a second NIC
  2. Enable systemd service
  3. Restart system
  4. Notice Postgres failed to bind ip-address