Skip to content

Commit

Permalink
Modified contrail-webui.service and contrailWebServer.sh to
Browse files Browse the repository at this point in the history
make sure that webui service is up after reboot and setup.
Closes-Bug: #1663115

Change-Id: I94d907a10742972813896c71dabbe753b1d983e2
  • Loading branch information
moghea committed Feb 9, 2017
1 parent bd55b55 commit 75b7817
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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 75b7817

Please sign in to comment.