Kills gdb processes with ray stop (#4046)

This commit is contained in:
William Ma
2019-02-21 11:28:26 -08:00
committed by Robert Nishihara
parent c7a4c74f55
commit fedad488d8
+22 -1
View File
@@ -378,8 +378,29 @@ def start(node_ip_address, redis_address, redis_port, num_redis_shards,
@cli.command()
def stop():
# Find the PID of the plasma_store_server process and kill it.
subprocess.call(
["killall plasma_store_server raylet raylet_monitor"], shell=True)
[
"kill $(ps aux | grep plasma_store_server | grep -v grep | "
"awk '{ print $2 }') 2> /dev/null"
],
shell=True)
# Find the PID of the raylet process and kill it.
subprocess.call(
[
"kill $(ps aux | grep raylet | grep -v grep | "
"awk '{ print $2 }') 2> /dev/null"
],
shell=True)
# Find the PID of the raylet_monitor process and kill it.
subprocess.call(
[
"kill $(ps aux | grep raylet_monitor | grep -v grep | "
"awk '{ print $2 }') 2> /dev/null"
],
shell=True)
# Find the PID of the monitor process and kill it.
subprocess.call(