Harden Windows service supervision
This commit is contained in:
@@ -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%
|
||||
|
||||
Reference in New Issue
Block a user