fix bugs for starting seweb/feeder

This commit is contained in:
zolliker 2025-05-21 11:41:44 +02:00
parent 6b79317a00
commit 759c96a83b

View File

@ -44,12 +44,12 @@ class SingleManager(ServiceManager):
service_ports = self.get_ins_info(self.single_ins)
services = list(service_ports) if service is None else [service]
for service in services:
print(f'systemctl --user {action} {self.group}@{service}')
print(f'systemctl --user {action} {self.systemd_service(service)}')
os.system(f'systemctl --user {action} {self.systemd_service(service)}')
def do_start(self, ins, service=None, cfg='', restart=False, wait=False, logger=None, opts=''):
if wait:
super().do_start(ins, service, False, True, logger, opts)
super().do_start(ins, service, cfg, False, True, logger, opts)
return
if restart:
action = 'restart'