Bastian (BaM)
127954b2fb
Fix command execution in network.send_wol to handle return values correctly.
3 months ago
Bastian (BaM)
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.
3 months ago
Bastian (BaM)
397ec0efd2
Rearrange SSH and DEBUG environment variables in compose.yaml
3 months ago
Bastian (BaM)
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
3 months ago
Bastian (BaM)
c9f5cb673d
Add DEBUG environment variable to compose.yaml
3 months ago
Bastian (BaM)
6dcc3d0ef3
Update SSH command options to disable strict host key checking and comment out known hosts file option for improved flexibility.
3 months ago
Bastian (BaM)
50ac346030
Add retry message suppression in network.port_is_up function
3 months ago
Bastian (BaM)
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.
3 months ago
Bastian (BaM)
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.
3 months ago
Bastian (BaM)
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.
3 months ago
Bastian (BaM)
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.
3 months ago
Bastian (BaM)
e6dea9fc3f
Update external tool command for Wake-on-LAN functionality
Change the command from 'wakeonlan' to 'wol' in the network module for better compatibility. Update log messages to reflect the new tool being used.
3 months ago
Bastian (BaM)
8cb6d55782
Refactor to use LuaJIT and improve performance
Integrate LuaJIT as an optional runtime for better performance, with a fallback to standard Lua 5.4. Update Dockerfile to install LuaJIT and create a wrapper script for execution. Enhance network module with socket fallback support and update README to reflect these changes and configuration options.
3 months ago
Bastian (BaM)
fff635c2d7
Add README.md for Auto-Boot Ollama Host project
Introduce a comprehensive README file detailing the project's purpose, features, environment variables, usage instructions, project structure, and how it operates. This addition enhances documentation and provides clarity for users and developers.
3 months ago
Bastian (BaM)
fed3cdc728
Fix capitalization in log messages
3 months ago
Bastian (BaM)
93bccebdff
Refactor error and finish pattern handling in auto-boot-ollama-host script
Update the handle_error_pattern and handle_finish_pattern functions to return the powered_on state. This change improves the clarity of the powered_on logic and ensures consistent state management during Ollama startup and shutdown processes.
3 months ago
Bastian (BaM)
76ddedbf14
Add debug logging for SSH command execution
Introduce a function to check the DEBUG environment variable and adjust logging behavior accordingly. When DEBUG is enabled, full SSH command details are logged; otherwise, only the command itself is logged to prevent exposure of sensitive information.
3 months ago
Bastian (BaM)
e8b11d43da
Increase sleep duration before starting the ollama service from 5 to 10 seconds to ensure better SSH readiness.
3 months ago
Bastian (BaM)
94da305b17
Quote remote commands in SSH execution to prevent shell interpretation of special characters
3 months ago
Bastian (BaM)
eb83c4ccbd
Add desktop session detection to auto-boot-ollama-host script
Implement a new module for checking if the user is logged into a Windows desktop session. The script now skips Ollama startup and shutdown if the user is currently logged in, preventing interruptions. Update README to reflect new features and module structure.
3 months ago
Bastian (BaM)
80976be664
Remove auto-boot-ollama-host script as it is no longer needed for the current setup.
3 months ago
Bastian (BaM)
886d1c86cf
Update Dockerfile to copy all scripts from the scripts directory for improved flexibility in script management
3 months ago
Bastian (BaM)
149d8b2191
Refactor auto-boot-ollama-host script into modular structure with separate configuration, network, SSH, and service management modules for improved maintainability and readability
3 months ago
Bastian (BaM)
1442eb3df7
Add SSH_USER environment variable to configuration and update SSH command references in the script
3 months ago
Bastian (BaM)
8537c0c312
Increase sleep duration before starting the ollama service to ensure SSH readiness
3 months ago
Bastian (BaM)
1a137f0894
Refactor SSH commands to use nssm for managing the ollama service
3 months ago
Bastian (BaM)
2e50d69d53
Update log message for clarity when restarting log watch loop
3 months ago
Bastian (BaM)
90b918512c
Update error pattern message for SSH connection failure to enhance clarity
3 months ago
Bastian (BaM)
2669ccfd02
Refactor SSH command execution to improve command structure and remove unnecessary quoting
3 months ago
Bastian (BaM)
ee9fb7ff52
Refactor SSH command execution to improve command quoting and enhance readability
3 months ago
Bastian (BaM)
2af2cde9c1
Refactor SSH command execution to remove unnecessary quoting and improve command handling
3 months ago
Bastian (BaM)
535fadbf5f
Fix SSH command execution by appending '&& true' to ensure proper handling of command success
3 months ago
Bastian (BaM)
11cc5779b5
Add WOL state tracking to manage shutdown logic for Ollama host
3 months ago
Bastian (BaM)
e743f61aef
Refactor log monitoring loop to continuously check for error and finish patterns, enhancing Ollama service management
3 months ago
Bastian (BaM)
adff6a42d1
Increase SSH connection timeout to 30 seconds and adjust sleep duration to 30 seconds for improved service availability
3 months ago
Bastian (BaM)
1424458bcb
Add FINISH_PATTERN detection and adjust shutdown logic for Ollama host
3 months ago
Bastian (BaM)
05b799ff94
Fix SSH command quoting for service management and increase shutdown delay to 180 seconds
3 months ago
Bastian (BaM)
cf0f039ee5
Fix SSH command quoting for service management and increase shutdown delay to 180 seconds
3 months ago
Bastian (BaM)
86e5cd3042
Increase delay before shutting down Ollama host to 180 seconds for improved power management
3 months ago
Bastian (BaM)
c971bf196a
Fix SSH command to enable ollama service without redundant arguments
3 months ago
Bastian (BaM)
3ebb6fecc5
Fix SSH command quoting to ensure proper argument handling
3 months ago
Bastian (BaM)
d092952df8
Fix SSH command quoting and improve ollama service management logic
3 months ago
Bastian (BaM)
006b7c716e
Enhance ollama service management: increase delay before starting service, add shutdown logic after service reachability check
3 months ago
Bastian (BaM)
5d26effe64
Fix SSH command execution syntax for ollama service startup
3 months ago
Bastian (BaM)
77a8dc85d3
Rename id file to id_rsa
3 months ago
Bastian (BaM)
903b4aa51b
Add log message for SSH reachability check before starting ollama service
3 months ago
Bastian (BaM)
cd99ea8779
Add delay before starting ollama service after confirming SSH reachability
3 months ago
Bastian (BaM)
0c42d35b09
Refactor SSH command execution and enhance port checking logic in Lua script
3 months ago
Bastian (BaM)
bda835e9f8
Add .dockerignore and update Dockerfile and compose.yaml for SSH key handling
3 months ago
Bastian (BaM)
ee29740c6b
Comment out SSH key environment variables in Docker Compose for improved security
3 months ago