Skip to content

Commit

Permalink
issue 1421 add pause for postgresql to restart for Oracle8
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1867 committed May 23, 2024
1 parent e6102f9 commit 9672219
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,15 @@ EOF

NEW_CONF_DIGEST=$(sha256sum "%{pgsql_conf}" | awk '{ print $1 }')

# Change TimeoutSec to 5 sec to allow postgres to start for Oracle 8
%if 0%{ol8}
sed -i -e 's/^TimeoutSec=0$/TimeoutSec=5/' '%{_unitdir}/postgresql.service'
systemctl daemon-reload
%endif

systemctl enable --now postgresql


# Restart the server only if the configuration has changed as a result
# of what we did to it. This is more for development convenience than
# anything else since regular releases don't happen often.
Expand Down

0 comments on commit 9672219

Please sign in to comment.