View Full Version : Simple way to start Ts server as a service
Syntax2112
13-08-2006, 15:39
Heres the easy way to run a Ts server at start up for ANY O.S. !!!!
1. Simply install the Ts server version on your machine.
2. Once installed, make sure you have a shortcut on your desktop,,if not there make one.
3. Right click and copy the shortcut.
4. Open Windows explorer and browse to C:\Documents and Settings\All Users\Start Menu\Programs\Startup
5. Right click again and PASTE the shortcut.
6. Close all and reboot..
You now have a Ts server that auto starts at boot !!
Simple simple.....
it is handy indeed.
Butttt
It will only start when you log in.
If windows is on start screen it wont start.
serverfreak
27-08-2006, 16:11
I think one of the best ways to do it is using Scheduled Tasks and tell it to "start at system startup" that way it will start wether you are loged in or not.
Patchank
27-08-2006, 17:21
or you simply register TS as a windows service
vsilverleaf
29-08-2006, 14:45
When I was looking for instructions the other day, this thread came up first in the search but I didn't find the info until deeper in the search, so posting it here for any who might be looking..
This was already posted by Tonelock, but here it is anyway.
Setting up the Teamspeak Server as a service in NT/2K/XP June2/2003...
.......................................
Disclaimer: This requires that you edit your Windows registry, if you are comfortable doing so then you already know the risks, and will take reasonable precautions.
If not then heaven can help you, cause I won't, and neither will the Teamspeak Team.
.......................................
First, you will need two(2) freely available Microsoft programs in order to set up your service.
- instrv.exe
- Srvany.exe
Instsrv.exe is the program used to create a Windows service
Srvany.exe is a program that allows other programs to run as a service.
These files are available from Microsoft's Windows Resource Kit, or from the web
To acquire them you can try here as a starting point, but as MS moves things around so much be prepared to look around on the site
www.microsoft.com/windows/reskits/
these files are also mirrored on numerous site around the web, so you can get them elswhere.
Remember, ask God first, and then look for a good search engine. One of them is bound to answer.
............................................
Assumptions:
I did this for teamspeak2 so my Teamspeak server program is in the default.
"C:\Program Files\Teamspeak2_RC2" directory. I will refer to this directory(folder?) as the Teamspeak Directory. If this is not your case just substitute the appropriate Directory..
I have tested this on W2K and win XP pro.
And that you have some idea about paths and directories.
You are familier with registry editing on the windows platform.
ok lets try this...
Step 1.
Put Instsrv.exe and Srvany.exe in your Teamspeak directory.
Step 2.
From the Start button, go to Run, then type cmd. This will open a command window, change to your Teamspeak directory by typing
damn ner anything you want but this mihgt work..
c:
then
cd C:\Program Files\Teamspeak2_RC2
then ENTER
(if step 2 was hard to follow think about leaving now, understanding paths is important)
Step 3.
Ok you made it...
Type> instsrv Teamserver "C:\Program Files\Teamspeak2_RC2\srvany.exe" and press ENTER.
This creates a service called "Teamserver". You can use a different service name if you want. but why would you?
If the process is successful, you'll see the following message:
CreateService SUCCESS at creating: Teamserver.
Step 4.
-Open Regedit by clicking Start->Run, then typing regedit and pressing ENTER.
-Navigate to the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Servi
ces\Teamserver
Step 5.
Now we need to tell Windows where, what, and how..
as in what application and where is it....
In the left pane of the registry window, click on the Teamserver key.
Then, in the right pane, right-click and choose NEW -> KEY
Name the key Parameters
Step 6.
In the newly-created Parameters key, right-click and choose NEW -> STRING VALUE
Name the value AppDirectory
Step 7.
In the newly-created Parameters key, right-click and choose NEW -> STRING VALUE
Name the value Application
Step 8.
Double-click on the String Value "AppDirectory". This will bring up the Modify dialog box. Set the value for
AppDirectory to
C:\Program Files\Teamspeak2_RC2
Step 9.
Double-click on the String Value "Application" Set the value for Application to
C:\Program Files\Teamspeak2_RC2\server_windows.exe
Step 10.
Close Regedit
Step 11.
Open the Services application to modify the service settings (in XP, Start->Settings->Control Panel, Double
click Administrative Tools, Double click Services). In Services you should see Teamserver, double click on it
to open its properties.
Set 'Startup type' to Automatic then click on the Log On tab.
In Log On..
uncheck the box that says "Allow service to interact with desktop". We don't need to see that opening screen,
no matter how sweet it is.
It will run fine as a Local System account. (The security aware will run it under a restricted account, but
that is for the paranoid and beyond the scope of this note)
Step:12
You can now click back on the 'General' tab to test the startup of your server. Click the 'start' button and
the server should start up.
If it does not, you probably entered something wrong in the registry (path, executable location, etc). Go back
through steps 4-10 and make sure all the paths are correct,and watch out for typos.
The new Teamserver service should function as any other system service. If you set it to Automatic, it should
always start when the system is booted (and before anyone logs into the system with the rest of the services).
Addendum:
To remove the service
Stop the service. After the service is stopped, open a command-prompt window, navigate to your Teamspeak directory, and type
instsrv Teamserver remove.
This will remove the service from your system. You can still run your Teamspeak server as you did before, as a normal application via the shortcut.
Patchank
29-08-2006, 16:28
hey guys, what about the faq ? :rolleyes: (http://www.goteamspeak.com/index.php?page=faq&id=4&item=46#q46)
Hey Patchank, what about this quote? :rolleyes:
Note:
Due to technical reasons, there won't be any future versions of the native service binary for Windows. The latest release is compatible to version 2.0.20.1 only.
Patchank
31-08-2006, 18:26
oops, sry, didn't see that. :/
But what a shame, this little binary really brought some help ;)
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.