PDA

View Full Version : Automation script


Whitenoize
11-02-2006, 04:37
Is there a script i can run to automate my server as far as startup and shutdown?

sgtbenc
11-02-2006, 05:40
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?

Cyrus
11-02-2006, 11:06
On Linux use initrc.d for a startup script use forum search.

Whitenoize
11-02-2006, 22: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.

Brain
11-02-2006, 23:57
Linux? cronjob.
Windows? don't know.

Whitenoize
12-02-2006, 00:01
Doh! I keep forgetting.......windows :o

ScP
12-02-2006, 03:59
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, 01: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.

sgtbenc
14-02-2006, 01:46
and after a certian number publish an error in the log.Publish into the TS Server log?

Whitenoize
15-02-2006, 02: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, 03: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>