feat: 新增 Job Worker 系統與 API 文檔全面更新
This commit is contained in:
14
install_worker_service.sh
Normal file
14
install_worker_service.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "Installing Momentry Worker as a system service..."
|
||||
|
||||
# Copy worker plist to system LaunchDaemons
|
||||
sudo cp /Users/accusys/momentry_core_0.1/momentry_runtime/plist/com.momentry.worker.plist /Library/LaunchDaemons/
|
||||
|
||||
# Load the service
|
||||
sudo launchctl load /Library/LaunchDaemons/com.momentry.worker.plist
|
||||
|
||||
echo "Worker service installed successfully."
|
||||
echo "Checking service status..."
|
||||
launchctl list | grep com.momentry.worker || echo "Service not listed in user domain; check system domain."
|
||||
Reference in New Issue
Block a user