Increase sleep duration before starting the ollama service from 5 to 10 seconds to ensure better SSH readiness.

This commit is contained in:
Bastian (BaM)
2025-09-14 20:19:42 +02:00
parent 94da305b17
commit e8b11d43da

View File

@@ -11,7 +11,7 @@ local ollama_manager = {}
-- Start Ollama service via SSH -- Start Ollama service via SSH
function ollama_manager.start_service(config) function ollama_manager.start_service(config)
utils.log("SSH is reachable. Starting ollama service...") utils.log("SSH is reachable. Starting ollama service...")
socket.sleep(5) socket.sleep(10)
-- Start ollama service using nssm -- Start ollama service using nssm
ssh.execute("nssm start ollama", config.SSH_USER, config.OLLAMA_HOST, config.SSH_PORT, config.SSH_IDENTITY_FILE) ssh.execute("nssm start ollama", config.SSH_USER, config.OLLAMA_HOST, config.SSH_PORT, config.SSH_IDENTITY_FILE)