From 2df6115183ca4c32ed5b338fe52eb88a76554e37 Mon Sep 17 00:00:00 2001 From: Jacob Magar Date: Fri, 15 Aug 2025 00:24:26 -0400 Subject: [PATCH] Move pid and log files to /tmp directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- dev.sh | 2 +- unraid_mcp/config/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev.sh b/dev.sh index b69d41e..6ee4856 100755 --- a/dev.sh +++ b/dev.sh @@ -8,7 +8,7 @@ set -euo pipefail # Configuration DEFAULT_PORT=6970 PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -LOG_DIR="$PROJECT_DIR/logs" +LOG_DIR="/tmp" LOG_FILE="$LOG_DIR/unraid-mcp.log" PID_FILE="$LOG_DIR/dev.pid" # Ensure logs directory exists diff --git a/unraid_mcp/config/settings.py b/unraid_mcp/config/settings.py index d939124..e1ea719 100644 --- a/unraid_mcp/config/settings.py +++ b/unraid_mcp/config/settings.py @@ -50,7 +50,7 @@ else: # Path to CA bundle # Logging Configuration LOG_LEVEL_STR = os.getenv('UNRAID_MCP_LOG_LEVEL', 'INFO').upper() 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 # Ensure logs directory exists