daemon: fixed issue with session data collect transition not properly stopping config services
This commit is contained in:
parent
4a02d4bed9
commit
fac8cfae08
2 changed files with 10 additions and 0 deletions
|
@ -1082,6 +1082,7 @@ class Session:
|
|||
if isinstance(node, CoreNodeBase) and node.up:
|
||||
args = (node,)
|
||||
funcs.append((self.services.stop_services, args, {}))
|
||||
funcs.append((node.stop_config_services, (), {}))
|
||||
utils.threadpool(funcs)
|
||||
|
||||
# shutdown emane
|
||||
|
|
|
@ -506,6 +506,15 @@ class CoreNodeBase(NodeBase):
|
|||
for service in startup_path:
|
||||
service.start()
|
||||
|
||||
def stop_config_services(self) -> None:
|
||||
"""
|
||||
Stop all configuration services.
|
||||
|
||||
:return: nothing
|
||||
"""
|
||||
for service in self.config_services.values():
|
||||
service.stop()
|
||||
|
||||
def makenodedir(self) -> None:
|
||||
"""
|
||||
Create the node directory.
|
||||
|
|
Loading…
Reference in a new issue