View Full Version : Automation script
Whitenoize
11-02-2006, 03:37
Is there a script i can run to automate my server as far as startup and shutdown?
Well, if you want it to start when your computer starts, just put it into your startup folder or run it as a service. Or did you have something else in mind?
On Linux use initrc.d for a startup script use forum search.
Whitenoize
11-02-2006, 21:57
Well, if you want it to start when your computer starts, just put it into your startup folder or run it as a service. Or did you have something else in mind?
Yes i had something more elaborate in mind :) , but thanks.What i am looking to do is have my box powered on at all times ( it is at my work ) When we close shop for the day i would like for the server to start up.Before work starts the next day it would shut off.I have a remote desktop connection set up with my warbox but it becomes tedious to turn Teamspeak on and off every day.I cant have it running 24-7 because i cant have this thing potentially using up bandwidth during buiness hours.
Linux? cronjob.
Windows? don't know.
Whitenoize
11-02-2006, 23:01
Doh! I keep forgetting.......windows :o
Use the current Windows service binary to install the TeamSpeak Server as a service on your PC and setup two simple tasks.
The following commands could be useful:
net start <SERVICENAME>
net stop <SERVICENAME>
Arkanthos
14-02-2006, 00:39
Since you posted it :)
ok, Running a Linux installation, I'd like to have a script that knows the server has gone down (crash or whatever) and is able to restart the server automatically. Maybe have a timer, say 30 sec per retry, and after a certian number publish an error in the log.
and after a certian number publish an error in the log.Publish into the TS Server log?
Whitenoize
15-02-2006, 01:57
I found this:
Q:Can I install TeamSpeak as a Windows service?
A:Yes, you can. There's a native Windows service binary available for the latest TeamSpeak 2 version, which is very simple to install.
* Download the service binary from the following URL:
ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/20201/
* Copy the file into the same directory where the server executable is located.
* To install the TeamSpeak 2 server service, just execute the server_windows_service.exe with the -INSTALL parameter.
The service can be removed from your system by executing the service binary with the -UNINSTALL parameter.
AppleEater
07-03-2006, 02:21
You could always write a simple program, or for those of us not so familiar with the finer points of programming, write a Macro and have a macro interpreter thingy (i.e. MacroMagic). <sarcasm> Or, if you really wanna be cool, use windows scheduled tasks </sarcasm>
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.