Ejemplo n.º 1
0
 def restart_services(request_data):
     # type: (dict) -> None
     """
     Restart services
     :param request_data: Data about the request (given by the decorator)
     :type request_data: dict
     :return: None
     :rtype: NoneType
     """
     with file_mutex('package_update'):
         SDMUpdateController.restart_services(service_names=json.loads(
             request_data.get('service_names', [])))
Ejemplo n.º 2
0
 def restart_services():
     """ Restart services """
     with file_mutex('package_update'):
         return SDMUpdateController.restart_services()