C0nw0nk

multi_run.cmd

Jun 17th, 2014
200
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO OFF
  2. ECHO Starting PHP FastCGI...
  3. set PATH=C:\Users\root\Desktop\php-5.4.29-nts-Win32-VC9-x86;%PATH%
  4. set TEMP=C:\WINDOWS\Temp
  5. set TMP=C:\WINDOWS\Temp
  6. set PHP_FCGI_CHILDREN=0
  7. set PHP_FCGI_MAX_REQUESTS=0
  8.  
  9. :loop
  10. c:
  11. cd \Users\root\Desktop\php-5.4.29-nts-Win32-VC9-x86
  12.  
  13. C:\Users\root\Desktop\php-5.4.29-nts-Win32-VC9-x86\php-cgi.exe -b 127.0.0.1:%1
  14.  
  15. set errorlvl=%errorlevel%
  16. choice /t:y,3
  17.  
  18. date /t>>C:\server\logs\ServerWatch.log
  19. time /t>>C:\server\logs\ServerWatch.log
  20. echo Process php-cgi %1 restarted>>C:\server\logs\ServerWatch.log
  21. echo Errorlevel = %errorlvl% >>C:\server\logs\ServerWatch.log
  22. echo:>>C:\server\logs\ServerWatch.log
  23.  
  24. if not exist abort.now goto loop
RAW Paste Data