Restarting Unmanaged Servers
-
Awesomenessman12
- New to forums

- Posts: 4
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Wed Jan 01, 2014 12:54 am
Restarting Unmanaged Servers
Hello,
I am just wondering if you can give me some code or a program so when my server says stopped responding or it crashes that it will restart by itself!
Thanks!
I am just wondering if you can give me some code or a program so when my server says stopped responding or it crashes that it will restart by itself!
Thanks!
Re: Restarting Unmanaged Servers
Game servers? Or windows? Linux? srcds or other?
Not a NFO employee
-
Awesomenessman12
- New to forums

- Posts: 4
- Joined: Wed Jan 01, 2014 12:54 am
Re: Restarting Unmanaged Servers
Well i would be running it on my vds. It has windows 2008 on it
Re: Restarting Unmanaged Servers
Do you want to reboot the VDS itself, or a game server on the vds? If a game server, what kind?
Not a NFO employee
-
Awesomenessman12
- New to forums

- Posts: 4
- Joined: Wed Jan 01, 2014 12:54 am
Re: Restarting Unmanaged Servers
It is just the gameservers! It would be for garrys mod. We also run the servers of bat files not the srcds. When it crashes I would like it to restart by its self
Re: Restarting Unmanaged Servers
Thanks for finally telling me what for -.-
This .bat file would auto restart your server after a crash:
start /wait srcds.exe -game your +maxplayers command +map line -console
needs to be your own startup line.
You cannot simulate a crash using the "x" on the console window, instead type quit in the console(or rcon quit).
This .bat file would auto restart your server after a crash:
Code: Select all
echo off
cls
echo SRCDS auto restart
title Garry's Mod auto restart
:srcds
echo (%time%) SRCDS started.
start /wait srcds.exe -game your +maxplayers command +map line
echo (%time%) Your server just closed or crashed. RESTARTING!
goto srcds
needs to be your own startup line.
You cannot simulate a crash using the "x" on the console window, instead type quit in the console(or rcon quit).
Not a NFO employee
-
Awesomenessman12
- New to forums

- Posts: 4
- Joined: Wed Jan 01, 2014 12:54 am
Re: Restarting Unmanaged Servers
So Even if it "stops working" will it auto restart
Re: Restarting Unmanaged Servers
I personally use Firedaemon to run all of our servers. It is friggin phenomenal.
Re: Restarting Unmanaged Servers
I used windows task scheduler for my hlstats daemons.
It checked every minute for the process, and restarted it if need be.
It checked every minute for the process, and restarted it if need be.
Not a NFO employee
