You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ra...@apache.org on 2014/04/25 02:19:31 UTC
git commit: updated refs/heads/master to 42d48fe
Repository: cloudstack
Updated Branches:
refs/heads/master 156b08af5 -> 42d48fe9a
cloudstack-6258: Log file will be set to cloud.out only if CLOUD_DEBUG is enabled
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/42d48fe9
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/42d48fe9
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/42d48fe9
Branch: refs/heads/master
Commit: 42d48fe9abe07031c57d555909de5bcc33a265b1
Parents: 156b08a
Author: Saurav Lahiri <sa...@sungard.com>
Authored: Thu Apr 3 14:07:21 2014 +0000
Committer: Rajesh Battala <ra...@citrix.com>
Committed: Fri Apr 25 05:50:57 2014 +0530
----------------------------------------------------------------------
systemvm/patches/debian/config/etc/init.d/cloud | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/42d48fe9/systemvm/patches/debian/config/etc/init.d/cloud
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/init.d/cloud b/systemvm/patches/debian/config/etc/init.d/cloud
index 83853bc..1f4f9ef 100755
--- a/systemvm/patches/debian/config/etc/init.d/cloud
+++ b/systemvm/patches/debian/config/etc/init.d/cloud
@@ -33,6 +33,12 @@ ENABLED=0
CMDLINE=$(cat /var/cache/cloud/cmdline)
+if [ ! -z $CLOUD_DEBUG ];then
+ LOG_FILE=/var/log/cloud/cloud.out
+else
+ LOG_FILE=/dev/null
+fi
+
TYPE="router"
for i in $CMDLINE
do
@@ -98,7 +104,7 @@ start() {
then
if [ "$pid" == "" ]
then
- (cd $CLOUDSTACK_HOME/systemvm; nohup ./run.sh > /var/log/cloud/cloud.out 2>&1 & )
+ (cd $CLOUDSTACK_HOME/systemvm; nohup ./run.sh > $LOG_FILE 2>&1 & )
pid=$(get_pids)
echo $pid > /var/run/cloud.pid
fi