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)
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)
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)
57b20df159
Add OpenSSH client installation and SSH key handling in Dockerfile
3 months ago
Bastian (BaM)
59a19551fe
Unset SSH environment variables after key file creation for enhanced security
3 months ago
Bastian (BaM)
8e618e59db
Ensure .ssh directory exists before creating SSH identity file
3 months ago
Bastian (BaM)
09b4acd110
Ensure .ssh directory exists before creating SSH identity file
3 months ago
Bastian (BaM)
17125b6600
Add SSH key file creation from environment variables with error handling
3 months ago
Bastian (BaM)
134398879c
Fix indentation in main function for improved readability
3 months ago
Bastian (BaM)
eb1e8b6acf
Add SSH key environment variables for enhanced security
3 months ago
Bastian (BaM)
7637f748d1
Add SSH configuration options for enhanced connectivity
3 months ago
Bastian (BaM)
bb4cac4a2b
Refactor send_wol function to streamline magic packet creation and enforce IPv4 UDP socket binding
3 months ago
Bastian (BaM)
c57359daef
Enhance Wake-on-LAN functionality by forcing IPv4 UDP socket and adding source IP binding
3 months ago
Bastian (BaM)
8b32856c0d
Enhance logging for Wake-on-LAN functionality in auto-boot-ollama-host.lua
3 months ago
Bastian (BaM)
62548d2954
Update WOL_BCAST environment variable to a consistent default value
3 months ago
Bastian (BaM)
ee47b9378c
Refactor ERROR_PATTERN in auto-boot-ollama-host.lua to simplify error message format
3 months ago
Bastian (BaM)
90b4fa9e7e
Add lua log watcher script and update Dockerfile to include lua dependencies
3 months ago