blob: 1b8f1e1d96fba3aedddd3a80684f5131b37735ad [file] [log] [blame]
@echo off
set lighttpd_dir=%~dp0..\third_party\lighttpd\win
REM copy lighttpd.exe to lighttpd_server.exe, because we don't want it to be
REM killed by taskkill.
REM Since xcopy is stupid, tell it that lighttpd_server.exe is a file and not
REM a directory using the echo hack.
echo f | xcopy /D /Y %lighttpd_dir%\lighttpd.exe %lighttpd_dir%\lighttpd_server.exe
REM copy the cygwin dll to the lighttpd folder because otherwise it wont work.
xcopy /D /Y %lighttpd_dir%\..\no_dll\CygWin1.dll %lighttpd_dir%
REM Start the server, using the conf file in the slave directory.
:RESTART
echo Starting %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib
%lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib -D
goto :RESTART