39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From 9720199bccbfaff831618d778ebfd0e5f076991a Mon Sep 17 00:00:00 2001
|
|
From: sagar sagar <sagar.sagar@oracle.com>
|
|
Date: Tue, 30 May 2023 16:50:24 +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: 35420628
|
|
|
|
Signed-off-by: sagar sagar <sagar.sagar@oracle.com>
|
|
---
|
|
postgresql-setup-8.6/postgresql.service.in | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/postgresql-setup-8.6/postgresql.service.in b/postgresql-setup-8.6/postgresql.service.in
|
|
index c73c42a..893e6fa 100644
|
|
--- a/postgresql-setup-8.6/postgresql.service.in
|
|
+++ b/postgresql-setup-8.6/postgresql.service.in
|
|
@@ -6,7 +6,7 @@
|
|
|
|
[Unit]
|
|
Description=PostgreSQL database server
|
|
-After=network.target
|
|
+After=network-online.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
--
|
|
2.39.3
|
|
|