Closedown
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user