chore: import storyforge baseline clean

This commit is contained in:
kris
2026-03-14 21:32:55 +08:00
commit acb1103b71
54 changed files with 9721 additions and 0 deletions

15
scripts/status_collector.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
PID_FILE="/Users/kris/code/StoryForge/data/collector/collector.pid"
if [ -f "$PID_FILE" ]; then
PID="$(cat "$PID_FILE" || true)"
if [ -n "$PID" ] && kill -0 "$PID" 2>/dev/null; then
echo "running:$PID"
exit 0
fi
fi
if lsof -nP -iTCP:8081 -sTCP:LISTEN >/dev/null 2>&1; then
echo "running:port"
else
echo "stopped"
fi