Script execution

This commit is contained in:
sfop
2017-03-30 09:32:06 +02:00
parent 97fe8499fd
commit 178b682fc2

View File

@@ -314,9 +314,8 @@ def is_camtool_running():
return int(exec_cmd("pgrep " + CAMTOOL_SERVER_SCRIPT + " | wc -l")) > 0
def kill_camtool():
ret = exec_cmd("killall -9 " + CAMTOOL_SERVER_SCRIPT)
ret += exec_cmd('pkill -f " \-p ' + _get_camtool_port() + '"')
return ret
#return exec_cmd("killall -9 " + CAMTOOL_SERVER_SCRIPT)
return exec_cmd('pkill -f " \-p ' + _get_camtool_port() + '"')
def _run_camtool():
try: