linux anti-crash - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: linux anti-crash (
/showthread.php?tid=242350)
linux anti-crash -
Baboon - 19.03.2011
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
Re: linux anti-crash -
Baboon - 20.03.2011
bump... Come on
Re: linux anti-crash -
Baboon - 20.03.2011
rebump, omg!!!!!! ANYONE? Not even someone of the sa-mp team? You don't vair omg?