Initial commit: Momentry Core v0.1
- Rust-based digital asset management system - Video analysis: ASR, OCR, YOLO, Face, Pose - RAG capabilities with Qdrant vector database - Multi-database support: PostgreSQL, Redis, MongoDB - Monitoring system with launchd plists - n8n workflow automation integration
This commit is contained in:
32
momentry_runtime/build.sh
Executable file
32
momentry_runtime/build.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Momentry Build Script
|
||||
|
||||
cd /Users/accusys/momentry_core_0.1
|
||||
|
||||
echo "========================================"
|
||||
echo "Building Momentry"
|
||||
echo "========================================"
|
||||
|
||||
# Check if cargo is available
|
||||
if ! command -v cargo > /dev/null 2>&1; then
|
||||
echo "ERROR: Rust/Cargo not found. Please install Rust first."
|
||||
echo "Visit: https://rustup.rs"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Build in release mode
|
||||
echo "Building release version..."
|
||||
cargo build --release
|
||||
|
||||
# Also build video_player
|
||||
cd /Users/accusys/video_player
|
||||
echo "Building video_player..."
|
||||
cargo build --release
|
||||
|
||||
echo "========================================"
|
||||
echo "Build Complete!"
|
||||
echo "========================================"
|
||||
echo "Momentry binary: /Users/accusys/momentry_core_0.1/target/release/momentry"
|
||||
echo "Video player: /Users/accusys/video_player/target/release/video_player"
|
||||
86
momentry_runtime/check.sh
Executable file
86
momentry_runtime/check.sh
Executable file
@@ -0,0 +1,86 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Momentry Health Check Script
|
||||
|
||||
echo "========================================"
|
||||
echo "Momentry Health Check"
|
||||
echo "========================================"
|
||||
echo ""
|
||||
|
||||
# Color codes
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m'
|
||||
|
||||
check() {
|
||||
local name="$1"
|
||||
local cmd="$2"
|
||||
|
||||
if eval "$cmd" > /dev/null 2>&1; then
|
||||
echo -e "${GREEN}✓${NC} $name"
|
||||
return 0
|
||||
else
|
||||
echo -e "${RED}✗${NC} $name"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
total=0
|
||||
passed=0
|
||||
|
||||
# PostgreSQL
|
||||
total=$((total + 1))
|
||||
check "PostgreSQL (localhost:5432)" "pg_isready -h localhost -p 5432 -U accusys" && passed=$((passed + 1))
|
||||
|
||||
# Redis
|
||||
total=$((total + 1))
|
||||
check "Redis (localhost:6379)" "redis-cli -a accusys ping" && passed=$((passed + 1))
|
||||
|
||||
# MongoDB - Port
|
||||
total=$((total + 1))
|
||||
check "MongoDB Port (27017)" "lsof -i :27017 > /dev/null 2>&1" && passed=$((passed + 1))
|
||||
|
||||
# MongoDB - Process
|
||||
total=$((total + 1))
|
||||
check "MongoDB Process" "pgrep -f mongod" && passed=$((passed + 1))
|
||||
|
||||
# MongoDB - Connection
|
||||
total=$((total + 1))
|
||||
check "MongoDB Connection" "mongosh --eval 'db.adminCommand(\"ping\")' > /dev/null 2>&1" && passed=$((passed + 1))
|
||||
|
||||
# Ollama
|
||||
total=$((total + 1))
|
||||
check "Ollama (localhost:11434)" "curl -s http://localhost:11434/api/tags > /dev/null" && passed=$((passed + 1))
|
||||
|
||||
# Momentry API
|
||||
total=$((total + 1))
|
||||
check "Momentry API (localhost:3000)" "curl -s http://localhost:3000/health > /dev/null" && passed=$((passed + 1))
|
||||
|
||||
# ffprobe
|
||||
total=$((total + 1))
|
||||
check "ffprobe" "which ffprobe" && passed=$((passed + 1))
|
||||
|
||||
# Check video_player binary
|
||||
total=$((total + 1))
|
||||
check "video_player binary" "test -f /Users/accusys/video_player/target/release/video_player" && passed=$((passed + 1))
|
||||
|
||||
# Check momentry binary
|
||||
total=$((total + 1))
|
||||
check "momentry binary" "test -f /Users/accusys/momentry_core_0.1/target/release/momentry" && passed=$((passed + 1))
|
||||
|
||||
echo ""
|
||||
echo "========================================"
|
||||
echo "Result: $passed/$total checks passed"
|
||||
echo "========================================"
|
||||
|
||||
# Show status if failures
|
||||
if [ $passed -lt $total ]; then
|
||||
echo ""
|
||||
echo "Failed services:"
|
||||
[ $(pg_isready -h localhost -p 5432 -U accusys > /dev/null 2>&1; echo $?) -ne 0 ] && echo " - PostgreSQL: brew services start postgresql@18"
|
||||
[ $(redis-cli -a accusys ping > /dev/null 2>&1; echo $?) -ne 0 ] && echo " - Redis: launchctl load ~/Library/LaunchAgents/com.momentry.redis.plist"
|
||||
[ $(curl -s http://localhost:11434/api/tags > /dev/null 2>&1; echo $?) -ne 0 ] && echo " - Ollama: launchctl load ~/Library/LaunchAgents/com.momentry.ollama.plist"
|
||||
fi
|
||||
|
||||
exit $([ $passed -eq $total ] && echo 0 || echo 1)
|
||||
65
momentry_runtime/env/momentry.env
vendored
Normal file
65
momentry_runtime/env/momentry.env
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
# Momentry Environment Variables Template
|
||||
# Copy this file to .env and update with your values
|
||||
|
||||
# ===================
|
||||
# Database Configuration
|
||||
# ===================
|
||||
DATABASE_URL=postgres://accusys@localhost:5432/momentry
|
||||
|
||||
# ===================
|
||||
# Redis Configuration
|
||||
# ===================
|
||||
REDIS_URL=redis://accusys:accusys@localhost:6379
|
||||
REDIS_PASSWORD=accusys
|
||||
|
||||
# ===================
|
||||
# MongoDB (Optional)
|
||||
# ===================
|
||||
# MONGODB_URL=mongodb://localhost:27017
|
||||
# MONGODB_DATABASE=momentry
|
||||
|
||||
# ===================
|
||||
# Qdrant (Optional - Vector Database)
|
||||
# ===================
|
||||
# QDRANT_URL=http://localhost:6333
|
||||
# QDRANT_COLLECTION=momentry_chunks
|
||||
|
||||
# ===================
|
||||
# API Server
|
||||
# ===================
|
||||
API_HOST=127.0.0.1
|
||||
API_PORT=3000
|
||||
|
||||
# ===================
|
||||
# Watch Directories
|
||||
# ===================
|
||||
WATCH_DIRECTORIES=~/Videos,~/momentry_core_project/test_video
|
||||
|
||||
# ===================
|
||||
# Ollama (LLM)
|
||||
# ===================
|
||||
OLLAMA_HOST=http://localhost:11434
|
||||
|
||||
# ===================
|
||||
# Email Notification (SMTP)
|
||||
# ===================
|
||||
# SMTP_HOST=smtp.gmail.com
|
||||
# SMTP_PORT=587
|
||||
# SMTP_USER=your_email@gmail.com
|
||||
# SMTP_PASSWORD=your_app_password
|
||||
# SMTP_FROM=momentry@example.com
|
||||
# SMTP_TO=admin@example.com
|
||||
|
||||
# ===================
|
||||
# Backup Configuration
|
||||
# ===================
|
||||
BACKUP_PATH=~/momentry_core_0.1/backups
|
||||
BACKUP_AUTO_ENABLED=true
|
||||
BACKUP_SCHEDULE="0 2 * * *" # Daily at 2am
|
||||
BACKUP_RETENTION_DAYS=7
|
||||
|
||||
# ===================
|
||||
# Model Paths (Optional)
|
||||
# ===================
|
||||
# EMBEDDING_MODEL_PATH=./models/comic-embed-text
|
||||
# LLM_MODEL_PATH=./models/mistral-7b
|
||||
47
momentry_runtime/plist/com.momentry.agent.plist
Normal file
47
momentry_runtime/plist/com.momentry.agent.plist
Normal file
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.agent</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/Users/accusys/momentry_core_0.1/momentry_runtime/start.sh</string>
|
||||
</array>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>HOME</key>
|
||||
<string>/Users/accusys</string>
|
||||
<key>USER</key>
|
||||
<string>accusys</string>
|
||||
<key>PATH</key>
|
||||
<string>/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/Users/accusys/.cargo/bin</string>
|
||||
<key>DATABASE_URL</key>
|
||||
<string>postgres://accusys@localhost:5432/momentry</string>
|
||||
<key>REDIS_URL</key>
|
||||
<string>redis://accusys:accusys@localhost:6379</string>
|
||||
<key>OLLAMA_HOST</key>
|
||||
<string>http://localhost:11434</string>
|
||||
</dict>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry_core_0.1/momentry_runtime/logs/stdout.log</string>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry_core_0.1/momentry_runtime/logs/stderr.log</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry_core_0.1</string>
|
||||
|
||||
<key>ProcessType</key>
|
||||
<string>Interactive</string>
|
||||
</dict>
|
||||
</plist>
|
||||
42
momentry_runtime/plist/com.momentry.caddy.plist
Normal file
42
momentry_runtime/plist/com.momentry.caddy.plist
Normal file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.caddy</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>root</string>
|
||||
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>HOME</key>
|
||||
<string>/opt/homebrew/var/lib/caddy</string>
|
||||
<key>XDG_DATA_HOME</key>
|
||||
<string>/opt/homebrew/var/lib</string>
|
||||
</dict>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/caddy</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/opt/caddy/bin/caddy</string>
|
||||
<string>run</string>
|
||||
<string>--config</string>
|
||||
<string>/Users/accusys/momentry/etc/Caddyfile</string>
|
||||
</array>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/caddy.error.log</string>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/caddy.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
44
momentry_runtime/plist/com.momentry.gitea.plist
Normal file
44
momentry_runtime/plist/com.momentry.gitea.plist
Normal file
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.gitea</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/gitea</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/opt/gitea/bin/gitea</string>
|
||||
<string>web</string>
|
||||
<string>--config</string>
|
||||
<string>/Users/accusys/momentry/etc/gitea/app.ini</string>
|
||||
</array>
|
||||
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>HOME</key>
|
||||
<string>/Users/accusys</string>
|
||||
<key>GITEA_WORK_DIR</key>
|
||||
<string>/Users/accusys/momentry/var/gitea</string>
|
||||
<key>PATH</key>
|
||||
<string>/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
|
||||
</dict>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/gitea.log</string>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/gitea.error.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
32
momentry_runtime/plist/com.momentry.mariadb.plist
Normal file
32
momentry_runtime/plist/com.momentry.mariadb.plist
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.mariadb</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/mariadb</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/opt/mariadb/bin/mariadbd-safe</string>
|
||||
<string>--datadir=/Users/accusys/momentry/var/mariadb</string>
|
||||
</array>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/mariadb.error.log</string>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/mariadb.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
39
momentry_runtime/plist/com.momentry.mongodb.plist
Normal file
39
momentry_runtime/plist/com.momentry.mongodb.plist
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.mongodb</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/bin/mongod</string>
|
||||
<string>--dbpath</string>
|
||||
<string>/Users/accusys/momentry/var</string>
|
||||
<string>--logpath</string>
|
||||
<string>/Users/accusys/momentry/log/mongodb.log</string>
|
||||
<string>--port</string>
|
||||
<string>27017</string>
|
||||
<string>--bind_ip</string>
|
||||
<string>0.0.0.0</string>
|
||||
</array>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/mongodb.error.log</string>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/mongodb.log</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/mongodb/</string>
|
||||
</dict>
|
||||
</plist>
|
||||
49
momentry_runtime/plist/com.momentry.monitor.plist
Normal file
49
momentry_runtime/plist/com.momentry.monitor.plist
Normal file
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.monitor</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry_core_0.1/monitor</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/bin/bash</string>
|
||||
<string>/Users/accusys/momentry_core_0.1/monitor/control/monitor_control.sh</string>
|
||||
<string>check</string>
|
||||
<string>all</string>
|
||||
</array>
|
||||
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>PATH</key>
|
||||
<string>/opt/homebrew/opt/node@22/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
|
||||
</dict>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<false/>
|
||||
|
||||
<key>StartInterval</key>
|
||||
<integer>300</integer>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<dict>
|
||||
<key>SuccessfulExit</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/monitor/monitor.log</string>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/monitor/monitor.error.log</string>
|
||||
|
||||
<key>ProcessType</key>
|
||||
<string>Background</string>
|
||||
</dict>
|
||||
</plist>
|
||||
102
momentry_runtime/plist/com.momentry.n8n.main.plist
Normal file
102
momentry_runtime/plist/com.momentry.n8n.main.plist
Normal file
@@ -0,0 +1,102 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.n8n.main</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/n8n</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/opt/node@22/bin/node</string>
|
||||
<string>/opt/homebrew/lib/node_modules/n8n/bin/n8n</string>
|
||||
<string>start</string>
|
||||
</array>
|
||||
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>PATH</key>
|
||||
<string>/opt/homebrew/opt/node@22/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
|
||||
|
||||
<key>N8N_ENCRYPTION_KEY</key>
|
||||
<string>Test3200Test3200Test3200</string>
|
||||
|
||||
<key>DOMAIN_NAME</key>
|
||||
<string>n8n.momentry.ddns.net</string>
|
||||
|
||||
<key>WEBHOOK_URL</key>
|
||||
<string>https://n8n.momentry.ddns.net/</string>
|
||||
|
||||
<key>N8N_PORT</key>
|
||||
<string>5678</string>
|
||||
|
||||
<key>N8N_LISTEN_ADDRESS</key>
|
||||
<string>0.0.0.0</string>
|
||||
|
||||
<key>N8N_USER_MANAGEMENT_JWT_DURATION</key>
|
||||
<string>1h</string>
|
||||
|
||||
<key>GENERIC_TIMEZONE</key>
|
||||
<string>Asia/Taipei</string>
|
||||
|
||||
<key>TZ</key>
|
||||
<string>Asia/Taipei</string>
|
||||
|
||||
<key>N8N_LOG_LEVEL</key>
|
||||
<string>info</string>
|
||||
|
||||
<key>DB_TYPE</key>
|
||||
<string>postgresdb</string>
|
||||
|
||||
<key>DB_POSTGRESDB_HOST</key>
|
||||
<string>127.0.0.1</string>
|
||||
|
||||
<key>DB_POSTGRESDB_PORT</key>
|
||||
<string>5432</string>
|
||||
|
||||
<key>DB_POSTGRESDB_DATABASE</key>
|
||||
<string>n8n</string>
|
||||
|
||||
<key>DB_POSTGRESDB_USER</key>
|
||||
<string>n8n</string>
|
||||
|
||||
<key>DB_POSTGRESDB_PASSWORD</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>EXECUTIONS_MODE</key>
|
||||
<string>queue</string>
|
||||
|
||||
<key>QUEUE_BULL_REDIS_HOST</key>
|
||||
<string>127.0.0.1</string>
|
||||
|
||||
<key>QUEUE_BULL_REDIS_PORT</key>
|
||||
<string>6379</string>
|
||||
|
||||
<key>QUEUE_BULL_REDIS_PASSWORD</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>N8N_USER_FOLDER</key>
|
||||
<string>/Users/accusys/momentry/var/n8n</string>
|
||||
|
||||
<key>N8N_METRICS</key>
|
||||
<string>true</string>
|
||||
</dict>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/n8n-main.log</string>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/n8n-main.error.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
105
momentry_runtime/plist/com.momentry.n8n.worker.plist
Normal file
105
momentry_runtime/plist/com.momentry.n8n.worker.plist
Normal file
@@ -0,0 +1,105 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.n8n.worker</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>GroupName</key>
|
||||
<string>staff</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/n8n</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/opt/node@22/bin/node</string>
|
||||
<string>/opt/homebrew/lib/node_modules/n8n/bin/n8n</string>
|
||||
<string>worker</string>
|
||||
</array>
|
||||
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>PATH</key>
|
||||
<string>/opt/homebrew/opt/node@22/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
|
||||
|
||||
<key>N8N_ENCRYPTION_KEY</key>
|
||||
<string>Test3200Test3200Test3200</string>
|
||||
|
||||
<key>DOMAIN_NAME</key>
|
||||
<string>n8n.momentry.ddns.net</string>
|
||||
|
||||
<key>WEBHOOK_URL</key>
|
||||
<string>https://n8n.momentry.ddns.net/</string>
|
||||
|
||||
<key>N8N_LISTEN_ADDRESS</key>
|
||||
<string>0.0.0.0</string>
|
||||
|
||||
<key>GENERIC_TIMEZONE</key>
|
||||
<string>Asia/Taipei</string>
|
||||
|
||||
<key>TZ</key>
|
||||
<string>Asia/Taipei</string>
|
||||
|
||||
<key>N8N_LOG_LEVEL</key>
|
||||
<string>info</string>
|
||||
|
||||
<key>DB_TYPE</key>
|
||||
<string>postgresdb</string>
|
||||
|
||||
<key>DB_POSTGRESDB_HOST</key>
|
||||
<string>127.0.0.1</string>
|
||||
|
||||
<key>DB_POSTGRESDB_PORT</key>
|
||||
<string>5432</string>
|
||||
|
||||
<key>DB_POSTGRESDB_DATABASE</key>
|
||||
<string>n8n</string>
|
||||
|
||||
<key>DB_POSTGRESDB_USER</key>
|
||||
<string>n8n</string>
|
||||
|
||||
<key>DB_POSTGRESDB_PASSWORD</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>EXECUTIONS_MODE</key>
|
||||
<string>queue</string>
|
||||
|
||||
<key>QUEUE_BULL_REDIS_HOST</key>
|
||||
<string>127.0.0.1</string>
|
||||
|
||||
<key>QUEUE_BULL_REDIS_PORT</key>
|
||||
<string>6379</string>
|
||||
|
||||
<key>QUEUE_BULL_REDIS_PASSWORD</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>N8N_USER_FOLDER</key>
|
||||
<string>/Users/accusys/momentry/var/n8n</string>
|
||||
|
||||
<key>N8N_RUNNERS_BROKER_PORT</key>
|
||||
<string>5690</string>
|
||||
|
||||
<key>N8N_RUNNERS_LAUNCHER_HEALTH_CHECK_PORT</key>
|
||||
<string>5691</string>
|
||||
|
||||
<key>N8N_METRICS</key>
|
||||
<string>true</string>
|
||||
</dict>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/n8n-worker.log</string>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/n8n-worker.error.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
44
momentry_runtime/plist/com.momentry.ollama.plist
Normal file
44
momentry_runtime/plist/com.momentry.ollama.plist
Normal file
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.ollama</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>OLLAMA_HOST</key>
|
||||
<string>0.0.0.0:11434</string>
|
||||
<key>OLLAMA_MODELS</key>
|
||||
<string>/Users/accusys/momentry/var/ollama/models</string>
|
||||
<key>OLLAMA_FLASH_ATTENTION</key>
|
||||
<string>1</string>
|
||||
<key>OLLAMA_KV_CACHE_TYPE</key>
|
||||
<string>q8_0</string>
|
||||
</dict>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/ollama</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/opt/ollama/bin/ollama</string>
|
||||
<string>serve</string>
|
||||
</array>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/ollama.error.log</string>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/ollama.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
34
momentry_runtime/plist/com.momentry.php.plist
Normal file
34
momentry_runtime/plist/com.momentry.php.plist
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.php</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/opt/php/sbin/php-fpm</string>
|
||||
<string>--nodaemonize</string>
|
||||
<string>--fpm-config</string>
|
||||
<string>/Users/accusys/momentry/etc/php/8.5/php-fpm.conf</string>
|
||||
</array>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/php.error.log</string>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/php.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
39
momentry_runtime/plist/com.momentry.postgresql.plist
Normal file
39
momentry_runtime/plist/com.momentry.postgresql.plist
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.postgresql</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>LC_ALL</key>
|
||||
<string>en_US.UTF-8</string>
|
||||
</dict>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/postgresql</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/opt/postgresql@18/bin/postgres</string>
|
||||
<string>-D</string>
|
||||
<string>/Users/accusys/momentry/var/postgresql</string>
|
||||
</array>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/postgresql.error.log</string>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/postgresql.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
46
momentry_runtime/plist/com.momentry.qdrant.plist
Normal file
46
momentry_runtime/plist/com.momentry.qdrant.plist
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.qdrant</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/qdrant/</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/Users/accusys/.cargo/bin/qdrant</string>
|
||||
</array>
|
||||
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>QDRANT__STORAGE__STORAGE_PATH</key>
|
||||
<string>/Users/accusys/momentry/var/qdrant/</string>
|
||||
|
||||
<key>QDRANT__SERVICE__HOST</key>
|
||||
<string>0.0.0.0</string>
|
||||
|
||||
<key>QDRANT__SERVICE__HTTP_PORT</key>
|
||||
<string>6333</string>
|
||||
|
||||
<key>HOME</key>
|
||||
<string>/Users/accusys</string>
|
||||
|
||||
<key>QDRANT__SERVICE__API_KEY</key>
|
||||
<string>Test3200Test3200Test3200</string>
|
||||
</dict>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/qdrant.log</string>
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/opt/homebrew/var/log/qdrant.error.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
41
momentry_runtime/plist/com.momentry.redis.plist
Normal file
41
momentry_runtime/plist/com.momentry.redis.plist
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.redis</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/redis</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/opt/redis/bin/redis-server</string>
|
||||
<string>--port</string>
|
||||
<string>6379</string>
|
||||
<string>--bind</string>
|
||||
<string>0.0.0.0</string>
|
||||
<string>--requirepass</string>
|
||||
<string>accusys</string>
|
||||
<string>--dir</string>
|
||||
<string>/Users/accusys/momentry/var/redis</string>
|
||||
<string>--logfile</string>
|
||||
<string>/Users/accusys/momentry/log/redis.log</string>
|
||||
</array>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/redis.error.log</string>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/redis.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
33
momentry_runtime/plist/com.momentry.rustdesk.hbbr.plist
Normal file
33
momentry_runtime/plist/com.momentry.rustdesk.hbbr.plist
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.rustdesk.hbbr</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/rustdesk</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/bin/hbbr</string>
|
||||
<string>-k</string>
|
||||
<string>_</string>
|
||||
</array>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/rustdesk-hbbr.log</string>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/rustdesk-hbbr.error.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
33
momentry_runtime/plist/com.momentry.rustdesk.hbbs.plist
Normal file
33
momentry_runtime/plist/com.momentry.rustdesk.hbbs.plist
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.rustdesk.hbbs</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/rustdesk</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/bin/hbbs</string>
|
||||
<string>-k</string>
|
||||
<string>_</string>
|
||||
</array>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/rustdesk-hbbs.log</string>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/rustdesk-hbbs.error.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
42
momentry_runtime/plist/com.momentry.sftpgo.plist
Normal file
42
momentry_runtime/plist/com.momentry.sftpgo.plist
Normal file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.sftpgo</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/workspace/sftpgo</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/opt/sftpgo/bin/sftpgo</string>
|
||||
<string>serve</string>
|
||||
<string>--config-file</string>
|
||||
<string>/Users/accusys/momentry/etc/sftpgo/sftpgo.json</string>
|
||||
</array>
|
||||
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>PATH</key>
|
||||
<string>/opt/homebrew/bin:/opt/homebrew/sbin:/usr/bin:/bin</string>
|
||||
<key>HOME</key>
|
||||
<string>/Users/accusys</string>
|
||||
</dict>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/sftpgo.log</string>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/sftpgo.error.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
39
momentry_runtime/plist/template.service.plist
Normal file
39
momentry_runtime/plist/template.service.plist
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.momentry.SERVICE_NAME</string>
|
||||
|
||||
<key>UserName</key>
|
||||
<string>accusys</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/accusys/momentry/var/SERVICE_NAME</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/opt/homebrew/bin/executable</string>
|
||||
<string>--arg1</string>
|
||||
<string>value1</string>
|
||||
</array>
|
||||
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>PATH</key>
|
||||
<string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
|
||||
</dict>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/accusys/momentry/log/SERVICE_NAME.log</string>
|
||||
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/accusys/momentry/log/SERVICE_NAME.error.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
59
momentry_runtime/start.sh
Executable file
59
momentry_runtime/start.sh
Executable file
@@ -0,0 +1,59 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Momentry Runtime Start Script
|
||||
# This script starts the momentry services
|
||||
|
||||
echo "========================================"
|
||||
echo "Momentry Runtime Starting"
|
||||
echo "========================================"
|
||||
|
||||
# Set environment
|
||||
export HOME=/Users/accusys
|
||||
export USER=accusys
|
||||
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/Users/accusys/.cargo/bin:$PATH"
|
||||
|
||||
# Database configuration
|
||||
export DATABASE_URL="postgres://accusys@localhost:5432/momentry"
|
||||
export REDIS_URL="redis://accusys:accusys@localhost:6379"
|
||||
export OLLAMA_HOST="http://localhost:11434"
|
||||
|
||||
# Change to project directory
|
||||
cd /Users/accusys/momentry_core_0.1
|
||||
|
||||
# Check dependencies
|
||||
echo "Checking dependencies..."
|
||||
|
||||
# Check PostgreSQL
|
||||
if ! pg_isready -h localhost -p 5432 -U accusys > /dev/null 2>&1; then
|
||||
echo "WARNING: PostgreSQL is not ready"
|
||||
fi
|
||||
|
||||
# Check Redis
|
||||
if ! redis-cli -a accusys ping > /dev/null 2>&1; then
|
||||
echo "WARNING: Redis is not ready"
|
||||
fi
|
||||
|
||||
# Check Ollama
|
||||
if ! curl -s http://localhost:11434/api/tags > /dev/null 2>&1; then
|
||||
echo "WARNING: Ollama is not ready"
|
||||
fi
|
||||
|
||||
echo "Dependencies checked."
|
||||
|
||||
# Start API server in background
|
||||
echo "Starting API server..."
|
||||
./target/release/momentry server --host 127.0.0.1 --port 3000 >> momentry_runtime/logs/stdout.log 2>&1 &
|
||||
API_PID=$!
|
||||
echo "API server started (PID: $API_PID)"
|
||||
|
||||
# Save PID to file
|
||||
echo $API_PID > momentry_runtime/logs/momentry.pid
|
||||
|
||||
echo "========================================"
|
||||
echo "Momentry Runtime Started"
|
||||
echo "========================================"
|
||||
echo "API Server: http://127.0.0.1:3000"
|
||||
echo "Log file: momentry_runtime/logs/stdout.log"
|
||||
echo ""
|
||||
echo "To stop: kill \$(cat momentry_runtime/logs/momentry.pid)"
|
||||
25
momentry_runtime/stop.sh
Executable file
25
momentry_runtime/stop.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Momentry Runtime Stop Script
|
||||
|
||||
echo "Stopping Momentry Runtime..."
|
||||
|
||||
PID_FILE="/Users/accusys/momentry_core_0.1/momentry_runtime/logs/momentry.pid"
|
||||
|
||||
if [ -f "$PID_FILE" ]; then
|
||||
PID=$(cat "$PID_FILE")
|
||||
if kill -0 "$PID" 2>/dev/null; then
|
||||
echo "Stopping API server (PID: $PID)..."
|
||||
kill "$PID"
|
||||
rm -f "$PID_FILE"
|
||||
echo "Momentry Runtime stopped."
|
||||
else
|
||||
echo "Process not running."
|
||||
rm -f "$PID_FILE"
|
||||
fi
|
||||
else
|
||||
echo "PID file not found. Trying to find and kill momentry processes..."
|
||||
pkill -f "momentry server" || true
|
||||
echo "Momentry Runtime stopped."
|
||||
fi
|
||||
Reference in New Issue
Block a user