[ create a new paste ] login | about

Link: http://codepad.org/wqz6A5nF    [ raw code | fork ]

arachneng - Plain Text, pasted on Aug 16:
@echo off
echo --- launching...
goto start

:restart
echo --- restarting...
set prevtime=%time:~,8%
:wait1s
if %time:~,8%==%prevtime% goto wait1s

:start
echo killing any remaining lighttpd instance...
tskill lighttpd 2> nul
echo killing any remaining php fastcgi instance...
tskill php-cgi 2> nul
echo starting php fastcgi instance...
RunHiddenConsole D:\Software\Lang\PHP5\php-cgi.exe -c D:\Software\Conf\php.ini -b 127.0.0.1:521
echo starting lighttpd instance...
D:\Software\Server\Lighttpd\lighttpd.exe -f D:\Software\Conf\Lighttpd\lighttpd.conf -m lib
if not %errorlevel%==0 goto restart

echo --- server started.


Create a new paste based on this one


Comments: