changed some logging from info to debug, removed startindex and depends from services

This commit is contained in:
Blake J. Harnden 2018-06-22 08:16:59 -07:00
parent 0aca9d7809
commit 37517c45f4
18 changed files with 35 additions and 104 deletions

View file

@ -14,22 +14,22 @@ class MyService(CoreService):
name = "MyService"
# you can create your own group here
group = "Utility"
# list executables that this service requires
executables = ()
# list of other services this service depends on
depends = ()
dependencies = ()
# per-node directories
dirs = ()
# generated files (without a full path this file goes in the node's dir,
# e.g. /tmp/pycore.12345/n1.conf/)
configs = ('myservice.sh',)
# this controls the starting order vs other enabled services
startindex = 50
configs = ("myservice.sh",)
# list of startup commands, also may be generated during startup
startup = ('sh myservice.sh',)
startup = ("sh myservice.sh",)
# list of shutdown commands
shutdown = ()
@classmethod
def generateconfig(cls, node, filename, services):
def generateconfig(cls, node, filename):
"""
Return a string that will be written to filename, or sent to the
GUI for user customization.