Skip to content

Commit

Permalink
VDM-127 VDM stop node REST API (#3701)
Browse files Browse the repository at this point in the history
* flip force stop server flag

* fix kill server process
  • Loading branch information
zeemanhe committed Jun 18, 2016
1 parent 453304d commit 159aaa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/python/vdm/server/HTTPListener.py
Expand Up @@ -1247,7 +1247,7 @@ def put(database_id, server_id):
else:
is_force = "false"

if is_force == "true":
if is_force == "false":
try:
server = voltdbserver.VoltDatabase(database_id)
response = server.kill_server(server_id)
Expand Down
2 changes: 1 addition & 1 deletion lib/python/vdm/server/voltdbserver.py
Expand Up @@ -527,7 +527,7 @@ def kill_server(self, server_id):
try:
processId = self.Get_Voltdb_Process().processId
if processId is not None and processId != -1:
os.kill(processId, signal.SIGKILL)
os.kill(int(processId), signal.SIGKILL)
return create_response('success', 200)
else:
return create_response('process not found', 200)
Expand Down

0 comments on commit 159aaa5

Please sign in to comment.