Run as a Service
This article contains instructions for installing the server as a Windows background service. This allows the server to run in the background even without a user logged into the computer.
This assumes you already have a GE:S server installed and ready to go. See this guide if you don’t.
File Paths in This Guide
In keeping with the Windows install guide, these are the installation directories we will use:
Source 2007 Dedicated Server: C:\servers\GEServer
GoldenEye: Source: C:\servers\GEServer\gesource
You can of course change these if your install paths differ.
Service Installation
-
Download
WinSW-x64.exefrom this page -
Copy
WinSW-x64.exetoC:\servers\GEServer -
Open Notepad and paste the following:
<service> <id>geserver</id> <name>GoldenEye: Source server</name> <description>The GoldenEye: Source dedicated server</description> <delayedAutoStart>true</delayedAutoStart> <serviceaccount> <domain>NT AUTHORITY</domain> <user>LocalService</user> </serviceaccount> <executable>srcds.exe</executable> <arguments>-console -game gesource +maxplayers 16 +map ge_archives</arguments> <log mode="roll"></log> </service>Note: If you’re running multiple servers, make sure to change the
<id>as this is unique to each installed service. -
Save the file in
C:\servers\GEServerasWinSW-x64.xml -
Open a Command Prompt as Administrator
-
Run the following command to create the service:
.\WinSW-x64.exe install -
Run the following command to give LocalService access to the server files:
icacls "C:\servers\GEServer" /grant "NT AUTHORITY\LocalService":(OI)(CI)M /T
You should now see GoldenEye: Source server in Services (services.msc). You can start or stop your server here, or by using the following commands from an elevated command prompt:
| Action | Command |
|---|---|
| Start | sc start geserver |
| Stop | sc stop geserver |
Next Steps
Your server may be running, but only people on your local network can connect to it! To learn how to make your server accessible globally, see: