From df5ba865eb8a42147d23100b37322921ad98248a Mon Sep 17 00:00:00 2001 From: sagar sagar Date: Thu, 11 May 2023 15:49:37 +0530 Subject: [PATCH] Fixed postgresql service network binding issue during bootup During the bootup, the postgresql service requires port bind to network address to assign configured in /var/lib/pgsql/data/postgresql.conf but the service is not able to do if the network service has not yet assigned an IP address to the network interface. By using "network-online.target" parameter in /usr/lib/systemd/system/postgresql.service we are postponing the postgresql service to run until we have not got the IP address assinged. For more info :- https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ Orabug: 35103668 Signed-off-by: sagar sagar --- postgresql-setup-8.7/postgresql.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql-setup-8.7/postgresql.service.in b/postgresql-setup-8.7/postgresql.service.in index c73c42a..893e6fa 100644 --- a/postgresql-setup-8.7/postgresql.service.in +++ b/postgresql-setup-8.7/postgresql.service.in @@ -6,7 +6,7 @@ [Unit] Description=PostgreSQL database server -After=network.target +After=network-online.target [Service] Type=notify -- 2.31.1