Raised This Month: $ Target: $400
 0% 

Auto restart crashed server ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
yOou Know Me
BANNED
Join Date: Oct 2009
Old 11-05-2010 , 02:38   Re: Auto restart crashed server ?
Reply With Quote #8

Please tell some way for the server to auto restart it self when it crashes with program with command o any other way PLEASE, if no one knows how here i have 2 commands that told me in one other forum but i can't make them work why ?


With first command:
This one i started the server but i got this error ??
Code:
:HLDS  

echo (%time%) gotovoo 

START/Realtime HLDS.EXE -console -game cstrike -insecure -master -noipx -nojoy +sys_ticrate 10000 +sv_maxupdaterate 100 +port 27023 +maxplayers 22 +map surf_ski_2 +rcon_password as53jjg7win531f +log off 
goto hlds 

echo (%time%) *****HLDS: CRASH, SERVER RESTART******  

echo (%time%) *****HLDS: RESTARTING CONSOLE...******  

goto hlds

And it was this that i got why ?:
Code:
user@user:~/Desktop/longjump$ :HLDS  
bash: :HLDS: command not found
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ echo (%time%) gotovoo 
bash: syntax error near unexpected token `%time%'
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ START/Realtime HLDS.EXE -console -game cstrike -insecure -master -noipx -nojoy +sys_ticrate 1000 +sv_maxupdaterate 100 +port 27044 +maxplayers 22 +map kz_longjumps2 +rcon_password afds32sa23a531f +log off 
bash: START/Realtime: No such file or directory
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ goto hlds 
bash: goto: command not found
user2user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ echo (%time%) *****HLDS: CRASH, SERVER RESTART******  
bash: syntax error near unexpected token `%time%'
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ echo (%time%) *****HLDS: RESTARTING CONSOLE...******  
bash: syntax error near unexpected token `%time%'
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$ 
user@user:~/Desktop/longjump$
I tried with this:
Code:
@echo off 
cls 
echo Auto-ON. 
echo Y_for_exit! 
title Auto-Restart-Crash 
:hlds 
echo (%time%) --[SERVER_ONLINE]-- 
start /wait/realtime hlds.exe -console -nocrashdialog -game cstrike +maxplayers 10 +map de_dust2 +sys_ticrate 10000 +sv_maxupdaterate 100 +port 27015 +sv_lan 0 -insecure -nomaster +log off 
echo (%time%) WARNING: hlds closed or crashed, restarting... 
goto hlds
]And i got this:
Code:
bash: goto: command not found

Last edited by yOou Know Me; 11-05-2010 at 02:42.
yOou Know Me is offline
 



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 00:28.


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