From f5ad765372e76764a31ecf0e06ab26b0af13cef9 Mon Sep 17 00:00:00 2001 From: Devrim Gunduz Date: Wed, 24 Dec 2025 14:47:33 +0300 Subject: [PATCH] repmgr: Add Restart=on-failure to unit file. Per https://github.com/pgdg-packaging/pgdg-rpms/issues/127 --- rpm/redhat/main/non-common/repmgr/main/repmgr-pg14.service | 2 ++ rpm/redhat/main/non-common/repmgr/main/repmgr-pg15.service | 2 ++ rpm/redhat/main/non-common/repmgr/main/repmgr-pg16.service | 2 ++ rpm/redhat/main/non-common/repmgr/main/repmgr-pg17.service | 2 ++ rpm/redhat/main/non-common/repmgr/main/repmgr-pg18.service | 2 ++ rpm/redhat/main/non-common/repmgr/main/repmgr.spec | 6 +++++- 6 files changed, 15 insertions(+), 1 deletion(-) diff --git a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg14.service b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg14.service index e3a2f55bc..577ab9ae1 100644 --- a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg14.service +++ b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg14.service @@ -33,6 +33,8 @@ ExecStart=/usr/pgsql-14/bin/repmgrd -f ${REPMGRDCONF} -p ${PIDFILE} -d --verbose ExecStop=/usr/bin/kill -TERM $MAINPID ExecReload=/usr/bin/kill -HUP $MAINPID +Restart=on-failure + # Give a reasonable amount of time for the server to start up/shut down TimeoutSec=300 diff --git a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg15.service b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg15.service index 8c83cda20..bb410fd27 100644 --- a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg15.service +++ b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg15.service @@ -33,6 +33,8 @@ ExecStart=/usr/pgsql-15/bin/repmgrd -f ${REPMGRDCONF} -p ${PIDFILE} -d --verbose ExecStop=/usr/bin/kill -TERM $MAINPID ExecReload=/usr/bin/kill -HUP $MAINPID +Restart=on-failure + # Give a reasonable amount of time for the server to start up/shut down TimeoutSec=300 diff --git a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg16.service b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg16.service index 0dbba87a7..b7b5dcec5 100644 --- a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg16.service +++ b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg16.service @@ -33,6 +33,8 @@ ExecStart=/usr/pgsql-16/bin/repmgrd -f ${REPMGRDCONF} -p ${PIDFILE} -d --verbose ExecStop=/usr/bin/kill -TERM $MAINPID ExecReload=/usr/bin/kill -HUP $MAINPID +Restart=on-failure + # Give a reasonable amount of time for the server to start up/shut down TimeoutSec=300 diff --git a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg17.service b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg17.service index b5c8898ab..bf3672053 100644 --- a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg17.service +++ b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg17.service @@ -33,6 +33,8 @@ ExecStart=/usr/pgsql-17/bin/repmgrd -f ${REPMGRDCONF} -p ${PIDFILE} -d --verbose ExecStop=/usr/bin/kill -TERM $MAINPID ExecReload=/usr/bin/kill -HUP $MAINPID +Restart=on-failure + # Give a reasonable amount of time for the server to start up/shut down TimeoutSec=300 diff --git a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg18.service b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg18.service index 4f399a24c..d91d96173 100644 --- a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg18.service +++ b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg18.service @@ -33,6 +33,8 @@ ExecStart=/usr/pgsql-18/bin/repmgrd -f ${REPMGRDCONF} -p ${PIDFILE} -d --verbose ExecStop=/usr/bin/kill -TERM $MAINPID ExecReload=/usr/bin/kill -HUP $MAINPID +Restart=on-failure + # Give a reasonable amount of time for the server to start up/shut down TimeoutSec=300 diff --git a/rpm/redhat/main/non-common/repmgr/main/repmgr.spec b/rpm/redhat/main/non-common/repmgr/main/repmgr.spec index c31984b47..b41639294 100644 --- a/rpm/redhat/main/non-common/repmgr/main/repmgr.spec +++ b/rpm/redhat/main/non-common/repmgr/main/repmgr.spec @@ -5,7 +5,7 @@ Name: %{sname}_%{pgmajorversion} Version: 5.5.0 -Release: 6PGDG%{?dist} +Release: 7PGDG%{?dist} Summary: Replication Manager for PostgreSQL Clusters License: GPLv3 URL: https://github.com/enterpriseDB/%{sname} @@ -182,6 +182,10 @@ fi %endif %changelog +* Wed Dec 24 2025 Devrim Gündüz - 5.5.0-7PGDG +- Add Restart=on-failure to unit file. Per + https://github.com/pgdg-packaging/pgdg-rpms/issues/127 + * Wed Nov 5 2025 - Devrim Gündüz - 5.5.0-6PGDG - Rebuild against OpenSSL 3 on SLES 15 -- 2.39.5