FS#79561 - [postgresql] fix systemd service file

Attached to Project: Arch Linux
Opened by Norbert (Sandwich) - Monday, 04 September 2023, 13:22 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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:
1. Bind PostgreSQL to a second NIC
2. Enable systemd service
3. Restart system
4. Notice Postgres failed to bind ip-address
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:19 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/postgresql/issues/2
Comment by loqs (loqs) - Monday, 04 September 2023, 15:55 GMT
Upstream added it to their service file recommendations in [1].

[1] https://github.com/postgres/postgres/commit/42d203ccfa8741ca8086e33f98aaa6c169063ef7

Loading...