improve service manager

- do not start sea server automatically
- replace _SERVICE in FRAPPY_HISTORY by service name
- imporve error messages
- no fiddling around with sys,path, reply on PYTHONPATH for
  finding packages
This commit is contained in:
l_samenv
2021-03-15 15:11:16 +01:00
parent adbe97361f
commit 702db45a76
9 changed files with 26 additions and 49 deletions

View File

@ -39,6 +39,13 @@ class FrappyManager(ServiceManager):
<instance> is one of %s
"""
def prepare_start(self, ins, service):
start_dir, env = super().prepare_start(ins, service)
his = env.get('FRAPPY_HISTORY')
if his:
env['FRAPPY_HISTORY'] = his.replace('_SERVICE', '_' + service)
return start_dir, env
def do_gui(self, ins='', service='main'):
try:
self.check_running(ins, service)