MCPcopy
hub / github.com/PromtEngineer/localGPT / _start_ollama

Method _start_ollama

run_system.py:391–404  ·  view source on GitHub ↗

Special handling for Ollama startup.

(self)

Source from the content-addressed store, hash-verified

389 return True
390
391 def _start_ollama(self) -> bool:
392 """Special handling for Ollama startup."""
393 # Check if Ollama is already running
394 if self.is_port_in_use(11434):
395 self.logger.info("✅ Ollama already running")
396 self.ensure_models()
397 return True
398
399 # Start Ollama
400 if self.start_service('ollama', self.services['ollama']):
401 self.ensure_models()
402 return True
403
404 return False
405
406 def _print_status_summary(self):
407 """Print system status summary."""

Callers 1

start_allMethod · 0.95

Calls 3

is_port_in_useMethod · 0.95
ensure_modelsMethod · 0.95
start_serviceMethod · 0.95

Tested by

no test coverage detected