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
#2

bump... Come on
Reply
#3

rebump, omg!!!!!! ANYONE? Not even someone of the sa-mp team? You don't vair omg?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)