linux anti-crash
#1

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:

Код:
#!/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
Where do I have to put this (on my desktop?) and how do I have to fill it in? PLEASE....

thnx.
me
Reply


Messages In This Thread
linux anti-crash - by Baboon - 19.03.2011, 22:46
Re: linux anti-crash - by Baboon - 20.03.2011, 14:06
Re: linux anti-crash - by Baboon - 20.03.2011, 17:38

Forum Jump:


Users browsing this thread: 1 Guest(s)