Urban Terror Forums: Script - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Script Rate Topic: -----

#1 User is offline   Vaughan (old) Icon

  • Joined: 25-May 04
  • Posts: 1,005
  • LocationPacific Northwest

Posted 18 June 2004 - 10:25 PM

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.

#2 User is offline   Aarsbuds0r (old) Icon

  • Joined: 21-January 04
  • Posts: 1,334
  • LocationNetherlands, The

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
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Sponsored link
https://www.urbanterror.info/members/donate/


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942