You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2013/06/14 03:49:54 UTC
svn commit: r1492927 - in
/incubator/ambari/branches/branch-1.2.4/ambari-server: sbin/ambari-server
src/main/python/ambari-server.py
Author: ncole
Date: Fri Jun 14 01:49:53 2013
New Revision: 1492927
URL: http://svn.apache.org/r1492927
Log:
AMBARI-2385. Fix for PostgreSQL not starting on RHEL-5.8 (ncole)
Modified:
incubator/ambari/branches/branch-1.2.4/ambari-server/sbin/ambari-server
incubator/ambari/branches/branch-1.2.4/ambari-server/src/main/python/ambari-server.py
Modified: incubator/ambari/branches/branch-1.2.4/ambari-server/sbin/ambari-server
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.2.4/ambari-server/sbin/ambari-server?rev=1492927&r1=1492926&r2=1492927&view=diff
==============================================================================
--- incubator/ambari/branches/branch-1.2.4/ambari-server/sbin/ambari-server (original)
+++ incubator/ambari/branches/branch-1.2.4/ambari-server/sbin/ambari-server Fri Jun 14 01:49:53 2013
@@ -86,6 +86,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 $@
;;
Modified: incubator/ambari/branches/branch-1.2.4/ambari-server/src/main/python/ambari-server.py
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.2.4/ambari-server/src/main/python/ambari-server.py?rev=1492927&r1=1492926&r2=1492927&view=diff
==============================================================================
--- incubator/ambari/branches/branch-1.2.4/ambari-server/src/main/python/ambari-server.py (original)
+++ incubator/ambari/branches/branch-1.2.4/ambari-server/src/main/python/ambari-server.py Fri Jun 14 01:49:53 2013
@@ -696,7 +696,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: