include creating of frappy and router service

enhance install.py
This commit is contained in:
2021-12-03 09:50:27 +01:00
parent 07fe567454
commit ebeded9931
4 changed files with 172 additions and 43 deletions

View File

@ -199,10 +199,5 @@ if __name__ == '__main__':
if len(cfgfiles) != 1:
raise ValueError('there must be one and only one single cfgfile %r' % cfgfiles)
parser.read(cfgfiles[0])
if parser.has_section('FRAPPY'):
port = parser.get('FRAPPY', 'port')
cfg = parser.get('FRAPPY', 'cfg')
cmd = ['su', '-', 'l_samenv', '-c', '/home/l_samenv/frappy/bin/secop-server -p %s %s' % (port, cfg)]
Popen(cmd, stdout=DEVNULL, stderr=DEVNULL)
if parser.has_section('ROUTER'):
AcceptHandler.run(parser['ROUTER'])