try to get rid of afs dependencies
- SeaClient is now in sea - SeaServer is not tried to be updated anymore
This commit is contained in:
@@ -147,24 +147,15 @@ class SeaManager(ServiceManager):
|
||||
return
|
||||
except KeyError: # running on an other machine?
|
||||
self.do_help()
|
||||
run_command('SeaClient %s' % ' '.join(args))
|
||||
if not ins:
|
||||
ins = next(iter(self.env))
|
||||
guicmd = f"{self.env[ins]['SEA_ROOT']}/SeaClient"
|
||||
run_command('%s %s' % (guicmd, ' '.join(args)))
|
||||
print('starting sea gui %s' % ' '.join(args))
|
||||
time.sleep(5)
|
||||
|
||||
def prepare_start(self, ins, service, *args):
|
||||
start_dir, env = super().prepare_start(ins, service)
|
||||
# load newest version of SeaServer if needed
|
||||
os.chdir(start_dir)
|
||||
sea_server_src = os.environ.get(
|
||||
'SEA_SERVER_SRC', '/afs/psi.ch/user/z/zolliker/public/git.rhel7/sics/SeaServer')
|
||||
if sea_server_src and exists(sea_server_src):
|
||||
if os.system('diff %s SeaServer' % sea_server_src):
|
||||
print('reload SeaServer')
|
||||
try:
|
||||
os.rename('SeaServer', 'SeaServer0')
|
||||
except Exception:
|
||||
pass
|
||||
os.system('cp %s ./' % sea_server_src)
|
||||
if service == 'sea':
|
||||
# debugging: copy status file in case of a reboot
|
||||
seastatus = self.get_status_filename(ins)
|
||||
|
||||
Reference in New Issue
Block a user