View Single Post
  #4  
Unread 31st July, 2005, 10:56 PM
ShiningSquirrel ShiningSquirrel is offline
Holy Shit!!
 
Join Date: Mar 2004
Posts: 740
Default

Quote:
Originally Posted by RockStar
Never mind I answered my own question...
http://www.unrealadmin.org/forums/sh...02&postcount=9

Anyone know of a script that would stop this server?

I'm having FireDeamon start a server.bat which is using EVNTIME to retime the server logs. Now if I want to work on this server, if I simply stop the service in FireDeamon, the ucc.exe continues to run. So how do I stop this?
There's a much easier way to do it.
Instead of starting your server from a batch, let firedaemon start it nativly from the command box.

Make a new batch file with the contents below, just change the location of the logfiles in the last few lines.


Code:
for /f "tokens=5" %%* in ( 'echo.^| TIME ^| findstr "current"') do SET TIME=%%*
if "%TIME:~1,1%"==":" SET TIME=0%TIME%
for /f "delims=&" %%i in ('DATE /T') do SET DATE=%%i

SET HOURS=%TIME:~0,2%
SET MINS=%TIME:~3,2%
SET SECS=%TIME:~6,2%
SET MM=%DATE:~4,2%
SET DD=%DATE:~7,2%
SET YYYY=%DATE:~10,4%

SET LOGNAME=%YYYY%%MM%%DD%%HOURS%%MINS%


copy C:\UT2004\System\UT2004Server.log C:\CrashLogs\%logname%.log
Now set the bat file to run before the event start.
With this method, when you stop and start the service manually or if it crashes, it will copy the last log out to the crashlog directory and rename it with the date and time. This is a lot easier as you don't have to use any additional third part apps, and it does it automatically for you so you don't have to manually stop the server after stopping firedaemon.
Reply With Quote