Skip to content

Commit

Permalink
Improvement of systemd unit file. Postgresql service should be starte…
Browse files Browse the repository at this point in the history
…d 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
  • Loading branch information
fila43 committed Jan 5, 2023
1 parent 7aad8db commit ac866b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion postgresql.service.in
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

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

[Service]
Type=notify
Expand Down

0 comments on commit ac866b4

Please sign in to comment.