Skip to content

Commit ac866b4

Browse files
committed
Improvement of systemd unit file. Postgresql service should be started after network is up.
The Postgresql server listening on IP address cant be started without properly started network service. network.target doesn't check whether network is up Resolves: rhbz#2127534 and rhbz#2157651 upstream also adopt such change by commit https://git.postgresql.org/gitweb/?p=pgrpms.git;a=commit;h=b0d12f55ba4e0301137e51f7cda1f6ceb1448cd6
1 parent 7aad8db commit ac866b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

postgresql.service.in

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
[Unit]
88
Description=PostgreSQL database server
9-
After=network.target
9+
# We should start postgresql service after network is up (rhbz#2127534 and rhbz#2157651)
10+
After=network-online.target
1011

1112
[Service]
1213
Type=notify

0 commit comments

Comments
 (0)