Harden Windows service supervision

This commit is contained in:
2026-09-07 11:19:45 +08:00
parent 266f29853e
commit 44ce5e655d
9 changed files with 199 additions and 9 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ cd /d "%~dp0"
REM 检查 .venv 是否存在
if not exist ".venv\Scripts\activate.bat" (
echo [ERROR] 未找到 .venv\Scripts\activate.bat
pause
if not defined DOCUTRANSLATE_NONINTERACTIVE pause
exit /b 1
)
@@ -29,7 +29,7 @@ call deactivate >nul 2>nul
if not "%EXIT_CODE%"=="0" (
echo.
echo [ERROR] 程序退出,返回码: %EXIT_CODE%
pause
if not defined DOCUTRANSLATE_NONINTERACTIVE pause
)
exit /b %EXIT_CODE%