guanghulab/notion/start.sh

9 lines
248 B
Bash

#!/bin/bash
source /opt/guanghulab-repo/notion/.env
cd /opt/guanghulab-repo/notion
pkill -f notion-mcp-server.py 2>/dev/null
sleep 1
nohup python3 notion-mcp-server.py > /tmp/notion-mcp.log 2>&1 &
sleep 2
echo "Server started on :$NOTION_MCP_PORT"