Increase sleep duration before starting the ollama service from 5 to 10 seconds to ensure better SSH readiness.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user