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