feat: import Havline fnOS application package

This commit is contained in:
2026-10-01 19:02:25 +08:00
commit 39684c4232
24 changed files with 410 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
set -u
CONTAINER_NAME="havline"
LOG_FILE="${TRIM_TEMP_LOGFILE:-/dev/stderr}"
log_error() {
echo "$1" > "$LOG_FILE"
}
is_running() {
docker inspect "$CONTAINER_NAME" 2>/dev/null | grep -q '"Status": "running"'
}
case "${1:-}" in
start|stop)
exit 0
;;
status)
if is_running; then
exit 0
fi
exit 3
;;
*)
log_error "Unknown command: ${1:-}"
exit 1
;;
esac