Commit Graph

  • 127954b2fb Fix command execution in network.send_wol to handle return values correctly. main Bastian (BaM) 2025-09-19 11:58:29 +0200
  • 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 +0200
  • 397ec0efd2 Rearrange SSH and DEBUG environment variables in compose.yaml Bastian (BaM) 2025-09-15 09:52:13 +0200
  • 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 +0200
  • c9f5cb673d Add DEBUG environment variable to compose.yaml Bastian (BaM) 2025-09-15 09:42:25 +0200
  • 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 +0200
  • 50ac346030 Add retry message suppression in network.port_is_up function Bastian (BaM) 2025-09-15 09:33:52 +0200
  • 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 +0200
  • 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 +0200
  • 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 +0200
  • 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 +0200
  • e6dea9fc3f Update external tool command for Wake-on-LAN functionality Bastian (BaM) 2025-09-15 08:49:30 +0200
  • 8cb6d55782 Refactor to use LuaJIT and improve performance Bastian (BaM) 2025-09-15 08:44:19 +0200
  • fff635c2d7 Add README.md for Auto-Boot Ollama Host project Bastian (BaM) 2025-09-14 21:34:43 +0200
  • fed3cdc728 Fix capitalization in log messages Bastian (BaM) 2025-09-14 21:17:26 +0200
  • 93bccebdff Refactor error and finish pattern handling in auto-boot-ollama-host script Bastian (BaM) 2025-09-14 20:40:50 +0200
  • 76ddedbf14 Add debug logging for SSH command execution Bastian (BaM) 2025-09-14 20:31:24 +0200
  • 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 +0200
  • 94da305b17 Quote remote commands in SSH execution to prevent shell interpretation of special characters Bastian (BaM) 2025-09-14 20:16:27 +0200
  • eb83c4ccbd Add desktop session detection to auto-boot-ollama-host script Bastian (BaM) 2025-09-14 18:27:39 +0200
  • 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 +0200
  • 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 +0200
  • 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 +0200
  • 1442eb3df7 Add SSH_USER environment variable to configuration and update SSH command references in the script Bastian (BaM) 2025-09-14 17:31:28 +0200
  • 8537c0c312 Increase sleep duration before starting the ollama service to ensure SSH readiness Bastian (BaM) 2025-09-14 15:59:47 +0200
  • 1a137f0894 Refactor SSH commands to use nssm for managing the ollama service Bastian (BaM) 2025-09-14 15:49:59 +0200
  • 2e50d69d53 Update log message for clarity when restarting log watch loop Bastian (BaM) 2025-09-14 15:03:48 +0200
  • 90b918512c Update error pattern message for SSH connection failure to enhance clarity Bastian (BaM) 2025-09-14 15:01:39 +0200
  • 2669ccfd02 Refactor SSH command execution to improve command structure and remove unnecessary quoting Bastian (BaM) 2025-09-14 14:50:56 +0200
  • ee9fb7ff52 Refactor SSH command execution to improve command quoting and enhance readability Bastian (BaM) 2025-09-14 14:43:26 +0200
  • 2af2cde9c1 Refactor SSH command execution to remove unnecessary quoting and improve command handling Bastian (BaM) 2025-09-14 14:39:05 +0200
  • 535fadbf5f Fix SSH command execution by appending '&& true' to ensure proper handling of command success Bastian (BaM) 2025-09-14 14:29:54 +0200
  • 11cc5779b5 Add WOL state tracking to manage shutdown logic for Ollama host Bastian (BaM) 2025-09-14 14:23:46 +0200
  • 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 +0200
  • 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 +0200
  • 1424458bcb Add FINISH_PATTERN detection and adjust shutdown logic for Ollama host Bastian (BaM) 2025-09-14 14:15:49 +0200
  • 05b799ff94 Fix SSH command quoting for service management and increase shutdown delay to 180 seconds Bastian (BaM) 2025-09-14 14:10:30 +0200
  • cf0f039ee5 Fix SSH command quoting for service management and increase shutdown delay to 180 seconds Bastian (BaM) 2025-09-14 14:09:24 +0200
  • 86e5cd3042 Increase delay before shutting down Ollama host to 180 seconds for improved power management Bastian (BaM) 2025-09-14 14:06:25 +0200
  • c971bf196a Fix SSH command to enable ollama service without redundant arguments Bastian (BaM) 2025-09-14 14:05:38 +0200
  • 3ebb6fecc5 Fix SSH command quoting to ensure proper argument handling Bastian (BaM) 2025-09-14 13:59:59 +0200
  • d092952df8 Fix SSH command quoting and improve ollama service management logic Bastian (BaM) 2025-09-14 13:55:43 +0200
  • 006b7c716e Enhance ollama service management: increase delay before starting service, add shutdown logic after service reachability check Bastian (BaM) 2025-09-14 13:47:52 +0200
  • 5d26effe64 Fix SSH command execution syntax for ollama service startup Bastian (BaM) 2025-09-14 13:44:46 +0200
  • 77a8dc85d3 Rename id file to id_rsa Bastian (BaM) 2025-09-14 13:39:21 +0200
  • 903b4aa51b Add log message for SSH reachability check before starting ollama service Bastian (BaM) 2025-09-14 13:37:18 +0200
  • cd99ea8779 Add delay before starting ollama service after confirming SSH reachability Bastian (BaM) 2025-09-14 13:35:30 +0200
  • 0c42d35b09 Refactor SSH command execution and enhance port checking logic in Lua script Bastian (BaM) 2025-09-14 13:34:44 +0200
  • bda835e9f8 Add .dockerignore and update Dockerfile and compose.yaml for SSH key handling Bastian (BaM) 2025-09-14 13:28:35 +0200
  • ee29740c6b Comment out SSH key environment variables in Docker Compose for improved security Bastian (BaM) 2025-09-14 13:18:19 +0200
  • 87b282d9d0 Refactor SSH key handling in Dockerfile to ensure known_hosts is created before ssh-keyscan Bastian (BaM) 2025-09-14 13:16:51 +0200
  • 57b20df159 Add OpenSSH client installation and SSH key handling in Dockerfile Bastian (BaM) 2025-09-14 13:13:43 +0200
  • 59a19551fe Unset SSH environment variables after key file creation for enhanced security Bastian (BaM) 2025-09-14 12:47:44 +0200
  • 8e618e59db Ensure .ssh directory exists before creating SSH identity file Bastian (BaM) 2025-09-14 12:46:36 +0200
  • 09b4acd110 Ensure .ssh directory exists before creating SSH identity file Bastian (BaM) 2025-09-14 12:45:44 +0200
  • 17125b6600 Add SSH key file creation from environment variables with error handling Bastian (BaM) 2025-09-14 12:44:23 +0200
  • 134398879c Fix indentation in main function for improved readability Bastian (BaM) 2025-09-14 12:40:47 +0200
  • eb1e8b6acf Add SSH key environment variables for enhanced security Bastian (BaM) 2025-09-14 12:33:52 +0200
  • 7637f748d1 Add SSH configuration options for enhanced connectivity Bastian (BaM) 2025-09-14 12:29:44 +0200
  • bb4cac4a2b Refactor send_wol function to streamline magic packet creation and enforce IPv4 UDP socket binding Bastian (BaM) 2025-09-14 11:10:50 +0200
  • c57359daef Enhance Wake-on-LAN functionality by forcing IPv4 UDP socket and adding source IP binding Bastian (BaM) 2025-09-14 11:08:40 +0200
  • 8b32856c0d Enhance logging for Wake-on-LAN functionality in auto-boot-ollama-host.lua Bastian (BaM) 2025-09-14 11:07:26 +0200
  • 62548d2954 Update WOL_BCAST environment variable to a consistent default value Bastian (BaM) 2025-09-14 11:04:48 +0200
  • ee47b9378c Refactor ERROR_PATTERN in auto-boot-ollama-host.lua to simplify error message format Bastian (BaM) 2025-09-14 10:54:51 +0200
  • 5f53bea04a Update Dockerfile to use lua script as entrypoint and remove unused shell script Bastian (BaM) 2025-09-14 10:54:16 +0200
  • 90b4fa9e7e Add lua log watcher script and update Dockerfile to include lua dependencies Bastian (BaM) 2025-09-14 10:49:11 +0200
  • 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 +0200
  • 96d2a8c2f1 Update WOL_MAC environment variable to use variable substitution Bastian (BaM) 2025-09-13 20:04:21 +0200
  • 8ecf2a2639 Add docker-cli installation to Dockerfile and streamline WOL script Bastian (BaM) 2025-09-13 20:02:34 +0200
  • 8bfc28dc83 Move infinite sleep to the correct position in the script to prevent premature exit Bastian (BaM) 2025-09-13 20:01:27 +0200
  • 11f9c8d6d5 Add infinite sleep at the end of the script to prevent premature exit Bastian (BaM) 2025-09-13 20:00:22 +0200
  • 3e15d0ec5d Debugging Bastian (BaM) 2025-09-13 19:53:03 +0200
  • c65e2f77c0 Comment out WOL_MAC environment variable in compose.yaml Bastian (BaM) 2025-09-13 19:47:11 +0200
  • 6b8df2ea56 Refactor Dockerfile and scripts for improved WOL configuration and error handling Bastian (BaM) 2025-09-13 19:45:00 +0200
  • c33a948b80 Update Dockerfile to use the correct script for entrypoint Bastian (BaM) 2025-09-13 19:24:07 +0200
  • 2ef4de324c Init Bastian (BaM) 2025-09-13 19:22:33 +0200