commit | author | age | ||
2207d6 | 1 | @echo off |
W | 2 | |
3 | cd %~dp0 | |
4 | set PROJECT_PATH=%~dp0 | |
5 | set KEYWORD="%PROJECT_PATH%yii" queue/listen | |
6 | ||
7 | rem @echo %KEYWORD% | |
8 | ||
9 | @echo ÕýÔÚ¼ì²é½ø³Ì... | |
10 | wmic process where name="php.exe" get CommandLine /value | findstr "%KEYWORD%" >nul | |
11 | if %errorlevel% equ 0 ( | |
12 | goto end | |
13 | ) else ( | |
14 | goto start | |
15 | ) | |
16 | ||
17 | :start | |
18 | @echo ÕýÔÚÆô¶¯½ø³Ì... | |
19 | start /b yii queue/listen 1 | |
20 | @echo ½ø³ÌÒÑÆô¶¯£¬ÇëÎð¹Ø±Õ±¾´°¿Ú£¡ | |
21 | goto end | |
22 | ||
23 | :end |