fix paths to pid files (setting them to explicitly point to %TEMP%)

This commit is contained in:
kytv
2011-09-17 14:58:30 +00:00
parent dc04414e9a
commit 4e52b9c8d7

View File

@@ -26,6 +26,10 @@
:: lameness.
::
cd /d %~dp0
findstr /V /R "^wrapper.logfile=" wrapper.config > wrapper.new
findstr /V /R "^wrapper.logfile=" wrapper.config > wrapper.tmp1
findstr /V /R "^wrapper.java.pidfile=" wrapper.tmp1 > wrapper.tmp2
findstr /V /R "^wrapper.pidfile=" wrapper.tmp2 > wrapper.new
del /F /Q wrapper.tmp*
echo wrapper.logfile=%%temp%%\wrapper.log >> wrapper.new
move wrapper.new wrapper.config
echo wrapper.java.pidfile=%%temp%%\routerjvm.pid >> wrapper.new
move /Y wrapper.new wrapper.config