added some code to keep track of config services separately within core nodes, added function for starting config services during session instantiation
This commit is contained in:
parent
dbc77d81f6
commit
191a9e9909
8 changed files with 87 additions and 26 deletions
22
daemon/core/configservices/simpleservice.py
Normal file
22
daemon/core/configservices/simpleservice.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
from core.configservice.base import ConfigService, ConfigServiceMode
|
||||
|
||||
|
||||
class SimpleService(ConfigService):
|
||||
name = "Simple"
|
||||
group = "SimpleGroup"
|
||||
directories = []
|
||||
executables = []
|
||||
dependencies = []
|
||||
startup = []
|
||||
validate = []
|
||||
shutdown = []
|
||||
validation_mode = ConfigServiceMode.BLOCKING
|
||||
default_configs = []
|
||||
|
||||
def create_files(self):
|
||||
text = """
|
||||
# sample script
|
||||
# node id(${node.id}) name(${node.name})
|
||||
echo hello
|
||||
"""
|
||||
self.render_text("test1.sh", text)
|
Loading…
Add table
Add a link
Reference in a new issue