SA-MP Forums Archive
[NEED] Samp anti-crasher for linux (centos) - 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: [NEED] Samp anti-crasher for linux (centos) (/showthread.php?tid=190059)



[NEED] Samp anti-crasher for linux (centos) - not - 14.11.2010

I try https://sampwiki.blast.hk/wiki/Linux_Server but doesn't work any help please!!

If anyone have one please tell me how to install it


Respuesta: [NEED] Samp anti-crasher for linux (centos) - not - 14.11.2010

ANYONE ?? please!!


Re: [NEED] Samp anti-crasher for linux (centos) - Ironboy500[TW] - 14.11.2010

Quote:
Originally Posted by not
Посмотреть сообщение
I try https://sampwiki.blast.hk/wiki/Linux_Server but doesn't work any help please
It isn't working? What method are you using and what error do you get?


Respuesta: [NEED] Samp anti-crasher for linux (centos) - not - 16.11.2010

i use method 2 and the console say: EROR FILE NOT FOUND "restart.sh"


Re: [NEED] Samp anti-crasher for linux (centos) - Cameltoe - 16.11.2010

Код:
#!/bin/bash
export GTA_PATH=/home/sampsvr
cd $GTA_PATH
while [ true ]; do
cat {$GTA_PATH}/server_log.txt >> {$GTA_PATH}/full_server_log.txt
rm {$GTA_PATH}/server_log.txt
touch {$GTA_PATH}/server_log.txt
./samp03svr
done
Works pretty well to me.


Respuesta: Re: [NEED] Samp anti-crasher for linux (centos) - not - 16.11.2010

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
Код:
#!/bin/bash
export GTA_PATH=/home/sampsvr
cd $GTA_PATH
while [ true ]; do
cat {$GTA_PATH}/server_log.txt >> {$GTA_PATH}/full_server_log.txt
rm {$GTA_PATH}/server_log.txt
touch {$GTA_PATH}/server_log.txt
./samp03svr
done
Works pretty well to me.
I try it:

1є create an archive called (in my case) zodiak.sh with your code (i modified the path) and put it at my server folder (/root/pnk)
2є stop server
3є type :
Код:
cd pnk
nohup ./zodiak.sh &
Give me that error:
Код:
nohup: cannot run command `./zodiak.sh': Permission denied
So I give permision 777 on zodiak.sh

I've try again and give me this error:
Код:
nohup: cannot run command `./zodiak.sh': No such file or directory



Re: [NEED] Samp anti-crasher for linux (centos) - Cameltoe - 16.11.2010

cd pnk
/zodiak.sh

That's it.


Respuesta: [NEED] Samp anti-crasher for linux (centos) - not - 16.11.2010

Код:
-bash: /zodiak.zh: No such file or directory



Re: [NEED] Samp anti-crasher for linux (centos) - jurgen - 29.11.2010

dont funk the anticrasher :S


Re: [NEED] Samp anti-crasher for linux (centos) - JaTochNietDan - 30.11.2010

The problem is not the file, it's settings in the file, I do believe.

Код:
#!/bin/bash
export GTA_PATH=/home/sampsvr
cd $GTA_PATH
while [ true ]; do
cat {$GTA_PATH}/server_log.txt >> {$GTA_PATH}/full_server_log.txt
rm {$GTA_PATH}/server_log.txt
touch {$GTA_PATH}/server_log.txt
./samp03svr
done
You need to modify the

Код:
export GTA_PATH=/home/sampsvr
Of the bash script to suit your SA-MP server directory, also make sure that the SA-MP server binary is called samp03svr for this particular script to work.