Revision: 8112
http://sourceforge.net/p/bigdata/code/8112
Author: dmekonnen
Date: 2014-04-13 03:10:21 +0000 (Sun, 13 Apr 2014)
Log Message:
-----------
the use of sudo to execute commands as another user appears to create a new environment/shell. thus the need to "source /etc/default/bigdataHA" again to make the environment variables available again to the startHAServices.
Modified Paths:
--------------
branches/BIGDATA_RELEASE_1_3_0/src/resources/etc/init.d/bigdataHA
Modified: branches/BIGDATA_RELEASE_1_3_0/src/resources/etc/init.d/bigdataHA
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/src/resources/etc/init.d/bigdataHA 2014-04-11 21:16:50 UTC (rev 8111)
+++ branches/BIGDATA_RELEASE_1_3_0/src/resources/etc/init.d/bigdataHA 2014-04-13 03:10:21 UTC (rev 8112)
@@ -89,7 +89,7 @@
fi
fi
if [ ! -f "$pidFile" ]; then
- action $"`date` : `hostname` : bringing up services: " sudo -u $BD_USER -g $BD_GROUP $binDir/startHAServices
+ action $"`date` : `hostname` : bringing up services: " sudo -u $BD_USER -g $BD_GROUP source /etc/default/bigdataHA ; $binDir/startHAServices
else
echo $"`date` : `hostname` : running as $pid"
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|