_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 script, close 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%) WARNING: srcds closed or crashed, restarting.
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.