Increase delay before shutting down Ollama host to 180 seconds for improved power management
This commit is contained in:
@@ -178,7 +178,7 @@ local function main()
|
||||
ssh("wsl.exe -d Debian -- sudo systemctl enable ollama && sudo systemctl start ollama", "micro", OLLAMA_HOST, SSH_PORT, SSH_IDENTITY_FILE)
|
||||
if (port_is_up(OLLAMA_HOST, OLLAMA_PORT, 90)) then
|
||||
log("Ollama service is reachable again.")
|
||||
socket.sleep(120)
|
||||
socket.sleep(180)
|
||||
log("Shutting down Ollama host to save power...")
|
||||
ssh("wsl.exe -d Debian -- sudo systemctl disable ollama && sudo systemctl stop ollama", "micro", OLLAMA_HOST, SSH_PORT, SSH_IDENTITY_FILE)
|
||||
ssh("shutdown.exe /s /t 0", "micro", OLLAMA_HOST, SSH_PORT, SSH_IDENTITY_FILE)
|
||||
|
||||
Reference in New Issue
Block a user