From 9672219927c0a2ed77562a81a2ccca313b646f67 Mon Sep 17 00:00:00 2001 From: cs1867 Date: Thu, 23 May 2024 17:01:51 +0000 Subject: [PATCH] issue 1421 add pause for postgresql to restart for Oracle8 --- .../unibuild-packaging/rpm/pscheduler-server.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pscheduler-server/pscheduler-server/unibuild-packaging/rpm/pscheduler-server.spec b/pscheduler-server/pscheduler-server/unibuild-packaging/rpm/pscheduler-server.spec index 74ba23f88..6c416c7e9 100644 --- a/pscheduler-server/pscheduler-server/unibuild-packaging/rpm/pscheduler-server.spec +++ b/pscheduler-server/pscheduler-server/unibuild-packaging/rpm/pscheduler-server.spec @@ -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.