Merge pull request #939 from minrk/service-logs

more debugging and health checks for services
This commit is contained in:
Min RK
2017-01-18 16:19:01 -10:00
committed by GitHub
2 changed files with 56 additions and 7 deletions

View File

@@ -160,6 +160,15 @@ class Service(LoggingConfigurable):
def managed(self):
"""Am I managed by the Hub?"""
return bool(self.command)
@property
def kind(self):
"""The name of the kind of service as a string
- 'managed' for managed services
- 'external' for external services
"""
return 'managed' if self.managed else 'external'
command = Command(minlen=0,
help="Command to spawn this service, if managed."