I hope I can get this through correctly.
OS: redhat Linux
What I need is a script..using cron tab?
Sorry Linux n00b
This script needs to do the following.
At 1am machine time, automatic reboot of the server.
Every 15 minutes, make sure the server is running, if not start the server.
I hope this was clear enough.
Advertisement
Page 1 of 1
Script
#2
Posted 18 June 2004 - 10:31 PM
#!/bin/bash
while true
do
./q3ded +set fs_game q3ut3 +set dedicated 2 +set net_port 27960 +set com_hunkmegs 75 +set fs_homepath /home/games/quake3/.q3a +set ttycon 0 +exec publicts.cfg
echo "server crashed on `date`" >> last_crash.log
sleep 900
done
Change that script a little so it works for you and use that to start the server.
Then open crontab by doing "crontab -e"
Make a new line: 0 1 * * * killall q3ded
Save it.
That should do it.
Page 1 of 1
1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users
Advertisement