Added docker to service management

This commit is contained in:
Chirag Aggarwal
2019-01-08 18:09:24 +00:00
parent a84085873e
commit ea9c042b9d
6 changed files with 54 additions and 13 deletions

View File

@@ -394,6 +394,7 @@ app.controller('servicesManager', function ($scope, $http) {
function ListInitialDatas(response) {
console.log(response.data)
if (response.data.status.litespeed) {
$scope.olsStatus = "Running";
@@ -408,9 +409,19 @@ app.controller('servicesManager', function ($scope, $http) {
$scope.olsStart = true;
$scope.olsStop = false;
}
if (response.data.status.docker) {
$scope.dockerStatus = "Running";
$scope.dockerStart = false;
$scope.dockerStop = true;
}
else {
$scope.dockerStatus = "Stopped";
$scope.dockerStart = true;
$scope.dockerStop = false;
}
// Update SQL stats
if (response.data.status.mysql) {
$scope.sqlStatus = "Running";
$scope.sqlStats = true;
@@ -468,7 +479,7 @@ app.controller('servicesManager', function ($scope, $http) {
}
};
}
getServiceStatus();
$scope.serviceAction = function (serviceName, action) {