Skip to content

Commit

Permalink
Merge "Modified contrail-webui.service and contrailWebServer.sh to"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 9, 2017
2 parents acd1ea7 + 75b7817 commit 81fa957
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
2 changes: 1 addition & 1 deletion common/control_files/contrail-webui-middleware.service
Expand Up @@ -4,7 +4,7 @@ After=redis.service
Requires=redis.service

[Service]
ExecStart=/usr/src/contrail/contrail-webui/contrailWebMiddleware.sh
ExecStart=/usr/src/contrail/contrail-web-core/contrailWebMiddleware.sh
Restart=always
LimitCORE=infinity

Expand Down
2 changes: 1 addition & 1 deletion common/control_files/contrail-webui.service
Expand Up @@ -4,7 +4,7 @@ After=redis.service
Requires=redis.service

[Service]
ExecStart=/usr/src/contrail/contrail-webui/contrailWebServer.sh
ExecStart=/usr/src/contrail/contrail-web-core/contrailWebServer.sh
Restart=always
LimitCORE=infinity

Expand Down
10 changes: 2 additions & 8 deletions common/control_files/contrailWebMiddleware.sh
@@ -1,11 +1,5 @@
#!/bin/bash

cd /usr/src/contrail/contrail-webui;
if command -v nodejs-contrail > /dev/null; then
node_exec=nodejs-contrail;
else
echo "error: Failed dependencies: nodejs-contrail is needed";
exit;
fi;
$node_exec jobServerStart.js 0.0.0.0
cd /usr/src/contrail/contrail-web-core;
node jobServerStart.js

10 changes: 2 additions & 8 deletions common/control_files/contrailWebServer.sh
@@ -1,10 +1,4 @@
#!/bin/bash

cd /usr/src/contrail/contrail-webui;
if command -v nodejs-contrail > /dev/null; then
node_exec=nodejs-contrail;
else
echo "error: Failed dependencies: nodejs-contrail is needed";
exit;
fi;
$node_exec webServerStart.js 0.0.0.0
cd /usr/src/contrail/contrail-web-core;
node webServerStart.js

0 comments on commit 81fa957

Please sign in to comment.