[postgresql] postgresql-setup: do not stop server when it can't be started

Pavel Raiskup praiskup at fedoraproject.org
Mon Jan 20 08:49:47 UTC 2014


commit 083dd21498234c22a9b7f9265a7596f272541270
Author: Pavel Raiskup <praiskup at redhat.com>
Date:   Thu Jan 9 09:42:46 2014 +0100

    postgresql-setup: do not stop server when it can't be started
    
    Version: 9.3.2-4

 postgresql-setup |    4 ----
 postgresql.spec  |    5 ++++-
 2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/postgresql-setup b/postgresql-setup
index 7135dab..8fd509b 100644
--- a/postgresql-setup
+++ b/postgresql-setup
@@ -130,10 +130,6 @@ upgrade(){
         exit 5
     fi
 
-    # Make sure service is stopped
-    # Using service here makes it work both with systemd and other init systems
-    service "$SERVICE_NAME" stop
-
     # Set up log file for pg_upgrade
     rm -f "$PGUPLOG"
     touch "$PGUPLOG" || exit 1
diff --git a/postgresql.spec b/postgresql.spec
index 240eb4e..39db8b5 100644
--- a/postgresql.spec
+++ b/postgresql.spec
@@ -64,7 +64,7 @@ Summary: PostgreSQL client programs
 Name: postgresql
 %global majorversion 9.3
 Version: 9.3.2
-Release: 3%{?dist}
+Release: 4%{?dist}
 
 # The PostgreSQL license is very similar to other MIT licenses, but the OSI
 # recognizes it as an independent license, so we do as well.
@@ -1123,6 +1123,9 @@ fi
 %endif
 
 %changelog
+* Mon Jan 13 2014 Pavel Raiskup <praiskup at redhat.com> - 9.3.2-4
+- postgresql-setup(upgrade): don't stop old server when it can not be started
+
 * Fri Jan 10 2014 Pavel Raiskup <praiskup at redhat.com> - 9.3.2-3
 - build with -O3 on ppc64 (private #1051075)
 


More information about the scm-commits mailing list