Quellcode durchsuchen

AMBARI-2385. Fix for PostgreSQL not starting on RHEL-5.8 (ncole)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1492928 13f79535-47bb-0310-9956-ffa450edef68
Nate Cole vor 12 Jahren
Ursprung
Commit
c8f612ab65

+ 3 - 0
ambari-server/sbin/ambari-server

@@ -87,6 +87,9 @@ case "$1" in
         $PYTHON /usr/sbin/ambari-server.py $@
         ;;
   setup)
+        initdb_res=`/sbin/service postgresql initdb 2>&1 > /dev/null`
+        initdb_res=`/sbin/service postgresql start 2>&1 > /dev/null`
+        initdb_res=`/sbin/service postgresql stop 2>&1 > /dev/null`
         echo -e "Setup ambari-server"
         $PYTHON /usr/sbin/ambari-server.py $@
         ;;

+ 1 - 1
ambari-server/src/main/python/ambari-server.py

@@ -783,7 +783,7 @@ def check_postgre_up():
         stdin=subprocess.PIPE,
         stderr=subprocess.PIPE
       )
-      time.sleep(5)
+      time.sleep(20)
       result = process.poll()
       print_info_msg("Result of postgres start cmd: " + str(result))
       if result is None: