def ServiceManager(run=utils.run):
 service_manager = _service_managers[get_name_of_init(run)]
 global _service_manager
 try:
  return _service_manager
 except NameError:
  _service_manager = service_manager(_get_service_command_generator(run), _get_service_result_parser(run))
  return _service_manager

def ServiceManager ( run = utils . run ) : service_manager = _service_managers [ get_name_of_init ( run ) ] global _service_manager try : return _service_manager except NameError : _service_manager = service_manager ( _get_service_command_generator ( run ) , _get_service_result_parser ( run ) ) return _service_manager
detect which init program is being used .