JoeK Posted December 15, 2006 Share Posted December 15, 2006 I was wondering if there was a script that would allow me to schedule a server to be turned on or off? Example: I would like a Spearhead server once a day to turn off and then back on. It would be great if possible, thanks Link to comment Share on other sites More sharing options...
ECF Posted December 15, 2006 Share Posted December 15, 2006 http://clientforums.tcadmin.com/showthread.php?t=201&highlight=restart+server+script If you only want to restart one single game server then simply create a batch file and put the following in it. net stop <serviceid> net start <serviceid> Replacing <serviceid> with the servers service id of your server. You can then run the batch file as a windows scheduled task and scedule it to run anytime you like. Link to comment Share on other sites More sharing options...
alphamike Posted March 28, 2007 Share Posted March 28, 2007 is there anyways to give the user the ability to set thier own? ie time start/stop. funtinality from within thier side would be preferable Link to comment Share on other sites More sharing options...
ECF Posted March 28, 2007 Share Posted March 28, 2007 Users cannot do this. Link to comment Share on other sites More sharing options...
alphamike Posted March 28, 2007 Share Posted March 28, 2007 Would you guys, at any point be thinking of intergrating such a funtion?...it would be of great benefit Link to comment Share on other sites More sharing options...
ECF Posted March 28, 2007 Share Posted March 28, 2007 Not at the moment. Way to much on the plate ATM to think about adding a scheduler. Link to comment Share on other sites More sharing options...
alphamike Posted March 28, 2007 Share Posted March 28, 2007 im only on a trial atm...and am still contemplaing the purchase. however ive foudn the system to be top nothc...so its safe to say im a sure thing. one thing tho...im a bit of a noob when it comes to the system jargon so my question is: where would i find the service id and is it a static id for that service? Link to comment Share on other sites More sharing options...
ECF Posted March 28, 2007 Share Posted March 28, 2007 Click START>Run and type in services.msc and hit enter. This brings up the windows services list. The service ID for TCAdmin games follow this format. <username> <slots> <gameshortname> <TCXXXXXXXXXXX> So a TCAdmin service would look similar to this: user CS 16 slots TCXXXXXXXXXXXXXX That would be the Service ID. Link to comment Share on other sites More sharing options...
alphamike Posted March 28, 2007 Share Posted March 28, 2007 is there anyway i can specify a wait time between start and stop... like five minutes? Link to comment Share on other sites More sharing options...
alphamike Posted March 28, 2007 Share Posted March 28, 2007 never mind ill just make 2 files...thanks for your help Link to comment Share on other sites More sharing options...
nighwing Posted May 28, 2007 Share Posted May 28, 2007 Is there a way to restart the actual phyiscal server using a script. Also can it be done by data center instead of by individual server. George Link to comment Share on other sites More sharing options...
swish Posted May 28, 2007 Share Posted May 28, 2007 You can restart the physical server from the control panel. Link to comment Share on other sites More sharing options...
DXGS Posted May 29, 2007 Share Posted May 29, 2007 What about a script to restart them automatically each day? Link to comment Share on other sites More sharing options...
swish Posted May 29, 2007 Share Posted May 29, 2007 Why would you want to restart your physical server daily. Seems kinda overkill. Not to mention clients servers will go down every single day. Link to comment Share on other sites More sharing options...
IZZO Posted June 9, 2007 Share Posted June 9, 2007 Ya every day would be over kill. I try to do mine 2 times a month but most the time i forget and it only gets done once a month. Moh servers on windows have some weird problem where they don't accept rcon commands anymore after a little over a month so most the time i try to reboot at least once a month. It would be cool to have some type of thing to do it for me. Link to comment Share on other sites More sharing options...
Travis Bickle Posted June 10, 2007 Share Posted June 10, 2007 You can schedule a task to restart your server weekly or monthly. Start the Task Scheduler. Under Windows 2000 this is located in Start Menu > Programs > Accessories > System Tools > Scheduled Tasks, In 2003 Server & XP - Start Menu > Control Panel > Scheduled Tasks. Now create a new task by selecting the File menu and then the sub-option New and then the sub-sub-option Scheduled Task. Rename the new task something like Reboot. Double click on the new task. First set the time. Click on the tab Schedule and select Weekly for 'Schedule Task'. Now select the day and time. Normally a weekend day (Sunday say) and a time at night (say 1am) to ensure no-one is using the system at the time. Now to set what is to run. Click back on the tab Task. Click set password and enter the password you use to log-on to Windows. This will ensure the reboot happens even if you are not logged on at the time. In the field 'Run' you now enter: For Windows 2000/XP/2003 Server - SHUTDOWN.EXE -r -f -t 01 Click the Ok button and you are done. Link to comment Share on other sites More sharing options...
Todd Holley Posted June 10, 2007 Share Posted June 10, 2007 I agree, but all that is needed is for you to create a scheduled task run every 2 weeks. And execute a .bat file containing the following, restart -f -r /t 1 Link to comment Share on other sites More sharing options...
Todd Holley Posted June 10, 2007 Share Posted June 10, 2007 Lol travis bickle we posted at the exact same time. ;] Link to comment Share on other sites More sharing options...
Travis Bickle Posted June 10, 2007 Share Posted June 10, 2007 lol, the batch file seems a bit easier. I'll have to try that the next time. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.