New package secubox-app-streamlit-launcher: - Lazy loading: apps start only when accessed - Idle shutdown: stop apps after configurable timeout (default 30min) - Memory management: force-stop low-priority apps when memory low - Priority system: higher priority = keep running longer - Always-on mode for critical apps - Procd daemon with respawn CLI: streamlit-launcherctl - daemon: run background manager - status/list: show app states and idle times - start/stop: manual app control - priority: set app priority (1-100) - check/check-memory: manual checks Updated slforge with launcher integration: - slforge launcher status/priority/always-on commands - Access tracking on app start - README documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
876 B
Plaintext
29 lines
876 B
Plaintext
config global 'global'
|
|
option enabled '1'
|
|
# Idle timeout in minutes before stopping an app
|
|
option idle_timeout '30'
|
|
# Check interval in seconds
|
|
option check_interval '60'
|
|
# Minimum free memory (MB) before force-stopping low-priority apps
|
|
option memory_threshold '100'
|
|
# Enable on-demand startup (vs always-running)
|
|
option on_demand '1'
|
|
# Startup timeout in seconds (max wait for app to be ready)
|
|
option startup_timeout '30'
|
|
# Directory for access tracking files
|
|
option tracking_dir '/tmp/streamlit-access'
|
|
# Log level: debug, info, warn, error
|
|
option log_level 'info'
|
|
|
|
# App priority (higher = keep running longer)
|
|
# Apps not listed default to priority 50
|
|
config priority 'default'
|
|
option app '*'
|
|
option value '50'
|
|
|
|
# Example: keep control dashboard always running
|
|
#config priority 'control'
|
|
# option app 'control'
|
|
# option value '100'
|
|
# option always_on '1'
|