repmgr: Add Restart=on-failure to unit file. Per https://github.com/pgdg-packaging... master github/master
authorDevrim Gunduz <[email protected]>
Wed, 24 Dec 2025 11:47:33 +0000 (14:47 +0300)
committerDevrim Gunduz <[email protected]>
Wed, 24 Dec 2025 11:47:33 +0000 (14:47 +0300)
rpm/redhat/main/non-common/repmgr/main/repmgr-pg14.service
rpm/redhat/main/non-common/repmgr/main/repmgr-pg15.service
rpm/redhat/main/non-common/repmgr/main/repmgr-pg16.service
rpm/redhat/main/non-common/repmgr/main/repmgr-pg17.service
rpm/redhat/main/non-common/repmgr/main/repmgr-pg18.service
rpm/redhat/main/non-common/repmgr/main/repmgr.spec

index e3a2f55bc1a901e47cd82394c4025f561eb9224a..577ab9ae12bc3b7c707fbe5ab755eba6ff0582c3 100644 (file)
@@ -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
 
 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
 
 # Give a reasonable amount of time for the server to start up/shut down
 TimeoutSec=300
 
index 8c83cda20c0411724377998661c19575ce661d6f..bb410fd27e69263cb18faaf2af545e89d9d94789 100644 (file)
@@ -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
 
 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
 
 # Give a reasonable amount of time for the server to start up/shut down
 TimeoutSec=300
 
index 0dbba87a7860b205c7b48b285bb4d50c2774add4..b7b5dcec5c267ee394af212d4eab40315dc03194 100644 (file)
@@ -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
 
 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
 
 # Give a reasonable amount of time for the server to start up/shut down
 TimeoutSec=300
 
index b5c8898ab2a941063d3c4fc866656f649c75f7c4..bf3672053a53f99fb719d4c4fe8821cc55e92808 100644 (file)
@@ -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
 
 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
 
 # Give a reasonable amount of time for the server to start up/shut down
 TimeoutSec=300
 
index 4f399a24c74aa762989c0b35b31883850a1b45e7..d91d96173975c92765b7fbad3ea25efc070e40d5 100644 (file)
@@ -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
 
 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
 
 # Give a reasonable amount of time for the server to start up/shut down
 TimeoutSec=300
 
index c31984b47c974332929e740cf6193cdca094250c..b416392944005c29cc9be40c2b053431148e93b0 100644 (file)
@@ -5,7 +5,7 @@
 
 Name:          %{sname}_%{pgmajorversion}
 Version:       5.5.0
 
 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}
 Summary:       Replication Manager for PostgreSQL Clusters
 License:       GPLv3
 URL:           https://github.com/enterpriseDB/%{sname}
@@ -182,6 +182,10 @@ fi
 %endif
 
 %changelog
 %endif
 
 %changelog
+* Wed Dec 24 2025 Devrim Gündüz <[email protected]> - 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 <[email protected]> - 5.5.0-6PGDG
 - Rebuild against OpenSSL 3 on SLES 15
 
 * Wed Nov 5 2025 - Devrim Gündüz <[email protected]> - 5.5.0-6PGDG
 - Rebuild against OpenSSL 3 on SLES 15