127954b2fb
Fix command execution in network.send_wol to handle return values correctly.
main
Bastian (BaM)
2025-09-19 11:58:29 +02:00
991f99885f
Refactor error handling and service management in auto-boot-ollama-host.lua and ollama_manager.lua. Update functions to return service state alongside power state, improving control over service startup and shutdown based on user session status.
Bastian (BaM)
2025-09-15 13:50:58 +02:00
397ec0efd2
Rearrange SSH and DEBUG environment variables in compose.yaml
Bastian (BaM)
2025-09-15 09:52:13 +02:00
4d2c0aebbb
Add SSH configuration options to support environment variables for strict host key checking and known hosts file path in ssh.lua and compose.yaml
Bastian (BaM)
2025-09-15 09:51:43 +02:00
6dcc3d0ef3
Update SSH command options to disable strict host key checking and comment out known hosts file option for improved flexibility.
Bastian (BaM)
2025-09-15 09:34:00 +02:00
50ac346030
Add retry message suppression in network.port_is_up function
Bastian (BaM)
2025-09-15 09:33:52 +02:00
8ee6b78f6d
Enhance network.port_is_up function by adding a check_interval_sec parameter for customizable retry intervals. Update logging to reflect the new interval, improving feedback during port availability checks.
Bastian (BaM)
2025-09-15 09:19:35 +02:00
a6164c6333
Enhance network.port_is_up function with a timeout loop for basic port checks. Implement logging for connection attempts and results, improving feedback on port availability status. This change optimizes performance by creating the TCP socket once and logging progress every 10 attempts.
Bastian (BaM)
2025-09-15 09:08:40 +02:00
dac93f5a30
Refactor network.port_is_up function to improve default parameter handling and timeout configuration. Update log messages for better clarity when falling back to basic port checks.
Bastian (BaM)
2025-09-15 08:58:40 +02:00
8b9c855912
Improve error handling in network module by suppressing Lua's error message when loading the socket module. This change enhances the user experience by preventing unnecessary error output while maintaining fallback functionality.
Bastian (BaM)
2025-09-15 08:54:55 +02:00
e8b11d43da
Increase sleep duration before starting the ollama service from 5 to 10 seconds to ensure better SSH readiness.
Bastian (BaM)
2025-09-14 20:19:42 +02:00
94da305b17
Quote remote commands in SSH execution to prevent shell interpretation of special characters
Bastian (BaM)
2025-09-14 20:16:27 +02:00
80976be664
Remove auto-boot-ollama-host script as it is no longer needed for the current setup.
Bastian (BaM)
2025-09-14 17:44:53 +02:00
886d1c86cf
Update Dockerfile to copy all scripts from the scripts directory for improved flexibility in script management
Bastian (BaM)
2025-09-14 17:38:43 +02:00
149d8b2191
Refactor auto-boot-ollama-host script into modular structure with separate configuration, network, SSH, and service management modules for improved maintainability and readability
Bastian (BaM)
2025-09-14 17:37:12 +02:00
1442eb3df7
Add SSH_USER environment variable to configuration and update SSH command references in the script
Bastian (BaM)
2025-09-14 17:31:28 +02:00
8537c0c312
Increase sleep duration before starting the ollama service to ensure SSH readiness
Bastian (BaM)
2025-09-14 15:59:47 +02:00
1a137f0894
Refactor SSH commands to use nssm for managing the ollama service
Bastian (BaM)
2025-09-14 15:49:59 +02:00
2e50d69d53
Update log message for clarity when restarting log watch loop
Bastian (BaM)
2025-09-14 15:03:48 +02:00
90b918512c
Update error pattern message for SSH connection failure to enhance clarity
Bastian (BaM)
2025-09-14 15:01:39 +02:00
2669ccfd02
Refactor SSH command execution to improve command structure and remove unnecessary quoting
Bastian (BaM)
2025-09-14 14:50:56 +02:00
ee9fb7ff52
Refactor SSH command execution to improve command quoting and enhance readability
Bastian (BaM)
2025-09-14 14:43:26 +02:00
2af2cde9c1
Refactor SSH command execution to remove unnecessary quoting and improve command handling
Bastian (BaM)
2025-09-14 14:39:05 +02:00
535fadbf5f
Fix SSH command execution by appending '&& true' to ensure proper handling of command success
Bastian (BaM)
2025-09-14 14:29:54 +02:00
11cc5779b5
Add WOL state tracking to manage shutdown logic for Ollama host
Bastian (BaM)
2025-09-14 14:23:46 +02:00
e743f61aef
Refactor log monitoring loop to continuously check for error and finish patterns, enhancing Ollama service management
Bastian (BaM)
2025-09-14 14:20:20 +02:00
adff6a42d1
Increase SSH connection timeout to 30 seconds and adjust sleep duration to 30 seconds for improved service availability
Bastian (BaM)
2025-09-14 14:18:23 +02:00
1424458bcb
Add FINISH_PATTERN detection and adjust shutdown logic for Ollama host
Bastian (BaM)
2025-09-14 14:15:49 +02:00
05b799ff94
Fix SSH command quoting for service management and increase shutdown delay to 180 seconds
Bastian (BaM)
2025-09-14 14:10:30 +02:00
cf0f039ee5
Fix SSH command quoting for service management and increase shutdown delay to 180 seconds
Bastian (BaM)
2025-09-14 14:09:24 +02:00
86e5cd3042
Increase delay before shutting down Ollama host to 180 seconds for improved power management
Bastian (BaM)
2025-09-14 14:06:25 +02:00
c971bf196a
Fix SSH command to enable ollama service without redundant arguments
Bastian (BaM)
2025-09-14 14:05:38 +02:00
bb4cac4a2b
Refactor send_wol function to streamline magic packet creation and enforce IPv4 UDP socket binding
Bastian (BaM)
2025-09-14 11:10:50 +02:00
c57359daef
Enhance Wake-on-LAN functionality by forcing IPv4 UDP socket and adding source IP binding
Bastian (BaM)
2025-09-14 11:08:40 +02:00
8b32856c0d
Enhance logging for Wake-on-LAN functionality in auto-boot-ollama-host.lua
Bastian (BaM)
2025-09-14 11:07:26 +02:00
62548d2954
Update WOL_BCAST environment variable to a consistent default value
Bastian (BaM)
2025-09-14 11:04:48 +02:00
ee47b9378c
Refactor ERROR_PATTERN in auto-boot-ollama-host.lua to simplify error message format
Bastian (BaM)
2025-09-14 10:54:51 +02:00
5f53bea04a
Update Dockerfile to use lua script as entrypoint and remove unused shell script
Bastian (BaM)
2025-09-14 10:54:16 +02:00
90b4fa9e7e
Add lua log watcher script and update Dockerfile to include lua dependencies
Bastian (BaM)
2025-09-14 10:49:11 +02:00
5772166c44
Refactor environment variable definitions in compose.yaml for consistency and clarity; clean up commented code in auto-boot-ollama-host.sh
Bastian (BaM)
2025-09-13 20:08:48 +02:00
96d2a8c2f1
Update WOL_MAC environment variable to use variable substitution
Bastian (BaM)
2025-09-13 20:04:21 +02:00
8ecf2a2639
Add docker-cli installation to Dockerfile and streamline WOL script
Bastian (BaM)
2025-09-13 20:02:34 +02:00
8bfc28dc83
Move infinite sleep to the correct position in the script to prevent premature exit
Bastian (BaM)
2025-09-13 20:01:27 +02:00
11f9c8d6d5
Add infinite sleep at the end of the script to prevent premature exit
Bastian (BaM)
2025-09-13 20:00:22 +02:00