fix bugs for starting seweb/feeder
This commit is contained in:
parent
6b79317a00
commit
759c96a83b
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user