From d80c65daa0e71e0ae17be179419bc170d083d488 Mon Sep 17 00:00:00 2001 From: excelero-andreas <31904878+excelero-andreas@users.noreply.github.com> Date: Fri, 15 Feb 2019 19:16:26 -0800 Subject: [PATCH] Added license agreement --- nvmesh.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/nvmesh.py b/nvmesh.py index 877d8f8..f9460aa 100644 --- a/nvmesh.py +++ b/nvmesh.py @@ -2663,13 +2663,21 @@ def manage_nvmesh_service(scope, details, servers, action, prefix, parallel, gra else: for server in host_list: if action == "check": - ssh_return = ssh.return_remote_command_std_output(server, "/opt/NVMesh/%s*/services/nvmesh%s status" % (scope[0], scope)) + ssh_return = ssh.return_remote_command_std_output(server, + "/opt/NVMesh/%s*/services/nvmesh%s status" % ( + scope[0], scope)) elif action == "start": - ssh_return = ssh.return_remote_command_std_output(server, "/opt/NVMesh/%s*/services/nvmesh%s status" % (scope[0], scope)) + ssh_return = ssh.return_remote_command_std_output(server, + "/opt/NVMesh/%s*/services/nvmesh%s start" % ( + scope[0], scope)) elif action == "stop": - ssh_return = ssh.return_remote_command_std_output(server, "/opt/NVMesh/%s*/services/nvmesh%s status" % (scope[0], scope)) + ssh_return = ssh.return_remote_command_std_output(server, + "/opt/NVMesh/%s*/services/nvmesh%s stop" % ( + scope[0], scope)) elif action == "restart": - ssh_return = ssh.return_remote_command_std_output(server, "/opt/NVMesh/%s*/services/nvmesh%s status" % (scope[0], scope)) + ssh_return = ssh.return_remote_command_std_output(server, + "/opt/NVMesh/%s*/services/nvmesh%s restart" % ( + scope[0], scope)) if ssh_return: if ssh_return[0] == 0: if details is True: