matrix4583 Posted April 30, 2007 Share Posted April 30, 2007 i found a script from one of the thread, but i don't know where to put this script in. Here is a scriptl; <tcascript> <language name="VB" /> <waitForUserAction value="true"/> <scriptCode><![CDATA[ Imports System Imports TCAdminSDK.Objects Public Class RestartGameServers Public Shared Sub Main() 'Get a list of all services Dim services() As Service = Service.GetServices() for each s as Service in services If s.CurrentStatus = ServiceStatus.Running Then Console.WriteLine("Restarting " & s.ServiceID) s.Stop() Threading.Thread.CurrentThread.Sleep(1000) s.Start() 'Wait a few seconds before restarting the 'next service to avoid high loads on server Threading.Thread.CurrentThread.Sleep(10000) End If next Console.WriteLine("Done. Press any key to continue.") End Sub End Class ]]></scriptCode> </tcascript> Also, how do i make certian time to restart every server? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.