20.11.2012, 19:22
I run CentOS6 as well, heres my "sampstart.sh" script:
navigate to SAMP folder
"nano sampstart.sh"
Paste the following in it:
ctrl-x to close, make sure you save changes
"chmod +x sampstart.sh"
Then to start server just navigate to SAMP folder and do "./sampstart.sh"
After it starts hit ctrl-a and then press 'd' to disconnect from screen. To reconnect do 'screen -r samp' if you want to ctrl-c your server (stops it).
To keep eye on server log do 'tail -f server_log.txt'
navigate to SAMP folder
"nano sampstart.sh"
Paste the following in it:
Quote:
#!/bin/sh screen -S samp ./samp03svr |
"chmod +x sampstart.sh"
Then to start server just navigate to SAMP folder and do "./sampstart.sh"
After it starts hit ctrl-a and then press 'd' to disconnect from screen. To reconnect do 'screen -r samp' if you want to ctrl-c your server (stops it).
To keep eye on server log do 'tail -f server_log.txt'