Install srcds as service
The most important field on the tab is the Parameters. The Parameters define the initial setup of your server. You can optionally run your server as the user you installed it as.
In the Logon Account field type your username e. Administrator and then enter the user's password twice in the Password and Confirm fields. You can change the Process Priority to allocate more CPU time to the dedicated server or specify which CPU or core the dedicated server will run on in the case of multi-processor, hyperthreaded or multi-core CPUs.
Did you find it helpful? Yes No. How can we help you today? Enter your search term here New support ticket. Check ticket status. The server can only be automatically restarted in text based mode. You can remove this command if you do not want to use VAC.
This command should never be removed. Valve has not implemented this in Windows so you will have to manually update the server yourself. You can only control the max players on server startup. You can change it to anywhere from to Changing it is generally used when you host multiple servers as each server has to use its own port when using the same IP. I have been looking for something like this for ages, and I finally found one.
I hope you guys enjoy it. For this guide, I assume that you are comfortable with: The command line if you don't know what this is, go learn then continue SRCDS and know how to run it from the command line if you don't know what this is, go learn then continue Editing the registry hopefully it won't come to this, but you should know how Phase 1: First, what is a Windows Service?
A Windows Service allows a program to run in the background without a user being logged in that's how I think of it. You don't need someone logged into the box to keep the servers running wasting memory and CPU time You can start and stop them at the push of a button If setup properly, they will automatically restart SRCDS if it crashes There are lots of different ways to do this, many of which are not very good.
If you are following the steps in this guide, I am assuming that you know what the implications are. If you do not, I suggest you stop reading now. I take no responsibility for any damages that you incur as a result of this guide. SrvStart gets all the parameters e. The config file is in a basic ini format. You can provide global options at the top of the file before any sections, but I haven't used that yet so I can't advise it. The section names are names of Windows Services.
When SrvStart exe runs as a programmer, this is my guess , it gets the name of the service it's supposed to run and searches the config file for a section matching that name. For this guide, I am assuming that you are using the exact config file that I posted above you'll see where things need to change for your version.
If it didn't, make sure you are not trying to install a service that already exists. You can now start the services to make sure they are working. You have completed phase one and your server is now protected from crashes. The next phase will allow you to have it automatically restarted if the server stops responding to rcon commands a good indication that it hung and didn't close.
Phase 2: This phase involves running a special program on the SAME machine that you are hosting your servers. NET application that when run, will check all the servers in it's configuration file to see if they are up and running by sending a rcon status command , and if a server isn't, it restarts the service.
0コメント