mirror of
https://github.com/jmagar/unraid-mcp.git
synced 2026-03-02 00:04:45 -08:00
Move pid and log files to /tmp directory
- Update dev.sh to use /tmp for LOG_DIR instead of PROJECT_DIR/logs - Update settings.py to use /tmp for LOGS_DIR instead of PROJECT_ROOT/logs - This change moves both pid files and log files to the temporary directory 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2
dev.sh
2
dev.sh
@@ -8,7 +8,7 @@ set -euo pipefail
|
|||||||
# Configuration
|
# Configuration
|
||||||
DEFAULT_PORT=6970
|
DEFAULT_PORT=6970
|
||||||
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
LOG_DIR="$PROJECT_DIR/logs"
|
LOG_DIR="/tmp"
|
||||||
LOG_FILE="$LOG_DIR/unraid-mcp.log"
|
LOG_FILE="$LOG_DIR/unraid-mcp.log"
|
||||||
PID_FILE="$LOG_DIR/dev.pid"
|
PID_FILE="$LOG_DIR/dev.pid"
|
||||||
# Ensure logs directory exists
|
# Ensure logs directory exists
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ else: # Path to CA bundle
|
|||||||
# Logging Configuration
|
# Logging Configuration
|
||||||
LOG_LEVEL_STR = os.getenv('UNRAID_MCP_LOG_LEVEL', 'INFO').upper()
|
LOG_LEVEL_STR = os.getenv('UNRAID_MCP_LOG_LEVEL', 'INFO').upper()
|
||||||
LOG_FILE_NAME = os.getenv("UNRAID_MCP_LOG_FILE", "unraid-mcp.log")
|
LOG_FILE_NAME = os.getenv("UNRAID_MCP_LOG_FILE", "unraid-mcp.log")
|
||||||
LOGS_DIR = PROJECT_ROOT / "logs"
|
LOGS_DIR = Path("/tmp")
|
||||||
LOG_FILE_PATH = LOGS_DIR / LOG_FILE_NAME
|
LOG_FILE_PATH = LOGS_DIR / LOG_FILE_NAME
|
||||||
|
|
||||||
# Ensure logs directory exists
|
# Ensure logs directory exists
|
||||||
|
|||||||
Reference in New Issue
Block a user