Auto-restart?
#10

Modified restarter

Код:
#!/bin/bash
export GTA_PATH=/home/sampsvr #Modify with your path to sa-mp server
cd $GTA_PATH
while [ true ]; do
cat {$GTA_PATH}/server_log.txt >> {$GTA_PATH}/full_server_log.txt #Creating full server log
rm {$GTA_PATH}/server_log.txt #Deleting server.log In theory this will increase server performance
touch {$GTA_PATH}/server_log.txt #Creating an empty server.log
./samp022svr #Starting server
done
Reply


Messages In This Thread
Auto-restart? - by Acid^^ - 12.11.2006, 02:25
Re: Auto-restart? - by f3llah1n - 12.11.2006, 02:30
Re: Auto-restart? - by Towlies - 12.11.2006, 05:54
Re: Auto-restart? - by Noosferatu - 12.11.2006, 12:54
Re: Auto-restart? - by Acid^^ - 13.11.2006, 20:48
Re: Auto-restart? - by Alejandro - 22.12.2007, 12:37
Re: Auto-restart? - by herbjr - 01.01.2008, 04:25
Re: Auto-restart? - by chrisb345 - 11.06.2008, 18:30
Re: Auto-restart? - by kaisersouse - 11.06.2008, 18:43
Re: Auto-restart? - by d0lph1n - 25.11.2008, 05:08

Forum Jump:


Users browsing this thread: 1 Guest(s)