Raised This Month: $ Target: $400
 0% 

L4D2 Server closes when using rcon_restart


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chronic1
SourceMod Donor
Join Date: Jun 2011
Old 07-20-2011 , 13:21   L4D2 Server closes when using rcon_restart
Reply With Quote #1

I need help getting my server to restart when using the _restart command from HLSW. I've been told I can use a batch script to make it autorestart. I have no idea how to do that. Can someone help me out here please?

I want to use one or both of these plugins to restart my server daily.
http://forums.alliedmods.net/showthread.php?p=777168

http://forums.alliedmods.net/showthread.php?p=1509547
Chronic1 is offline
mjmfighter
Member
Join Date: Jun 2010
Old 07-20-2011 , 17:41   Re: L4D2 Server closes when using rcon_restart
Reply With Quote #2

_restart doesnt actually restart the server. It does the same thing a quit, it just shutsdown the server.

Here is a simple batch script that will restart the server. Put this into a file and call it something like start.cmd

PHP Code:
@echo off
cls
echo Protecting srcds from crashes...
echo If 
you want to close srcds and this scriptclose the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game cstrike +map de_dust +maxplayers 16
echo (%time%) WARNINGsrcds closed or crashedrestarting.
goto 
srcds 
I got that off the srcds.com website. I would look into a server monitor software though, so your server will be restarted if it crashes and it doesnt close out of the executable.
mjmfighter is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode