Closedown
This commit is contained in:
@@ -312,6 +312,7 @@ def _get_camtool_port():
|
||||
|
||||
def is_camtool_running():
|
||||
return int(exec_cmd("pgrep " + CAMTOOL_SERVER_SCRIPT + " | wc -l")) > 0
|
||||
#return int(exec_cmd('pgrep -f "' + CAMTOOL_SERVER_SCRIPT + ' -p ' + _get_camtool_port() + '" | wc -l')) > 0
|
||||
|
||||
def kill_camtool():
|
||||
#return exec_cmd("killall -9 " + CAMTOOL_SERVER_SCRIPT)
|
||||
@@ -319,8 +320,8 @@ def kill_camtool():
|
||||
|
||||
def _run_camtool():
|
||||
try:
|
||||
cmd = "source /opt/gfa/python\n"
|
||||
cmd = cmd + CAMTOOL_SERVER_SCRIPT + " -p " + _get_camtool_port() + " -b /afs/psi.ch/intranet/SF/Applications/config/camtool_n > /dev/null &"
|
||||
#cmd = "source /opt/gfa/python\n"
|
||||
cmd = CAMTOOL_SERVER_SCRIPT + " -p " + _get_camtool_port() + " -b /afs/psi.ch/intranet/SF/Applications/config/camtool_n > /dev/null &"
|
||||
print exec_cmd(cmd)
|
||||
except:
|
||||
import traceback
|
||||
|
||||
Reference in New Issue
Block a user