19.03.2011, 22:46
Well I've looked at wiki of linux. I got my server up etc, but I want to make it anti-crash for linux. I am new and I DON'T get everything yet!
I just have my folder of the sa-mp server: Bureaublad/samp03 .
I am dutch, Bureaublad means Desktop. my serverfile: samp03svr.
Please help:
Where do I have to put this (on my desktop?) and how do I have to fill it in? PLEASE....
thnx.
me
I just have my folder of the sa-mp server: Bureaublad/samp03 .
I am dutch, Bureaublad means Desktop. my serverfile: samp03svr.
Please help:
Код:
#!/bin/sh log=samp.log dat=`date` samp="/path/to/samp/server/samp03svr" cd /path/to/samp/server echo "${dat} watchdog script starting." >>${log} while true; do echo "${dat} Server exited, restarting..." >>${log} mv /path/to/samp/server/server_log.txt /path/to/samp/server/logs/server_log.`date '+%m%d%y%H%M%S'` ${samp} >> $log sleep 2 done
thnx.
me