Increase sleep duration before starting the ollama service to ensure SSH readiness
This commit is contained in:
@@ -173,7 +173,7 @@ local function main()
|
||||
|
||||
if port_is_up(OLLAMA_HOST, SSH_PORT, 60) then
|
||||
log("SSH is reachable. Starting ollama service...")
|
||||
socket.sleep(2)
|
||||
socket.sleep(5)
|
||||
ssh("nssm start ollama", "micro", OLLAMA_HOST, SSH_PORT, SSH_IDENTITY_FILE)
|
||||
--ssh('wsl.exe -d Debian -- sudo systemctl enable ollama', "micro", OLLAMA_HOST, SSH_PORT, SSH_IDENTITY_FILE)
|
||||
--ssh('wsl.exe -d Debian -- sudo systemctl start ollama', "micro", OLLAMA_HOST, SSH_PORT, SSH_IDENTITY_FILE)
|
||||
|
||||
Reference in New Issue
Block a user