System services: add reload support

parent bbe0db59
......@@ -42,6 +42,11 @@ class SystemServices(service.FunctionObject) :
###
@service.functionMethod(SYSTEM_SERVICE_METHODS_NAMESPACE, in_signature="s")
def reload(self, name) :
logger.verbose("{mod}: Request to reload service \"%s\"" % name)
self._systemd_manager.ReloadUnit(name + '.service', 'replace')
@service.functionMethod(SYSTEM_SERVICE_METHODS_NAMESPACE, in_signature="s")
def start(self, name) :
logger.verbose("{mod}: Request to start service \"%s\"" % name)
self._systemd_manager.StartUnit(name + '.service', 'replace')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment