Updated Branches:
  refs/heads/master 0535873d6 -> 4a143c508

adding the environment variable in stratos.pp


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/31f53580
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/31f53580
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/31f53580

Branch: refs/heads/master
Commit: 31f53580ef550811e1d8d73ef4b1cb3c58034031
Parents: e18ef02
Author: Isuru <[email protected]>
Authored: Mon Jan 13 22:08:06 2014 +0530
Committer: Isuru <[email protected]>
Committed: Mon Jan 13 22:08:06 2014 +0530

----------------------------------------------------------------------
 tools/puppet/manifests/classes/stratos.pp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/31f53580/tools/puppet/manifests/classes/stratos.pp
----------------------------------------------------------------------
diff --git a/tools/puppet/manifests/classes/stratos.pp 
b/tools/puppet/manifests/classes/stratos.pp
index b1cc50b..bd70001 100644
--- a/tools/puppet/manifests/classes/stratos.pp
+++ b/tools/puppet/manifests/classes/stratos.pp
@@ -85,7 +85,8 @@ class stratos {
                exec { "strating_${name}":
                        user            => $owner,
                        path            => 
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/java/bin/",
-                       command         => "${target}/bin/stratos.sh > 
/dev/null 2>&1 &",
+                       environment     => 'JAVA_HOME=/opt/java',
+                       command         => "${target}/bin/stratos.sh > 
/var/log/lb_start.log 2>&1 &",
                        creates         => 
"${target}/repository/wso2server.log",
                }
        }

Reply via email to