Closedown

This commit is contained in:
sfop
2017-03-15 12:39:25 +01:00
parent 99179b63ea
commit ffd51982cf
3 changed files with 20 additions and 6 deletions

View File

@@ -267,3 +267,17 @@ if get_context().isServerEnabled():
d.initialize()
cas5 = CAS("PSHELL_OP:SERVER_URL", d, 'string')
#Managing local camtool server
def is_camtool_running():
return int(exec_cmd("pgrep cam_server | wc -l")) > 0
def run_camtool():
if is_camtool_running():
return None
cmd = "source /opt/gfa/python\n"
cmd = cmd + "cam_server -p 10000 -b /afs/psi.ch/intranet/SF/Applications/config/camtool_n &"
return exec_cmd(cmd)