Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
automatically including current (update) date in server name?

#1
I want to run an automatically updated xonotic git server in Ubuntu Server 10.04. Having it update and compile should be easy enough in a startup script, ie:

Code:
./all update
./all compile
./all run dedicated

Two things I don't know how to do however:
1. Automatically update the server.cfg with the current date when the script is run (so it says something like "Xonotic git - updated <todays_date>".
2. Automatically reboot the server or kill/update/restart the git server at a specified time of day.

If anyone could help me with this it'd be much appreciated Smile
Reply

#2
1. Not tested, but something like this should work
Code:
echo "set builddate \"`date`\"" > ~/.xonotic/data/builddate.cfg
In config:
Code:
exec builddate.cfg
hostname "Awesome server (Updated at $builddate)"

2. You might use RCON (with rcon_secure 0):
Code:
rconpw=hackme
srvaddr=nexuiz.example.com
srvport=26000
printf "\377\377\377\377rcon %s quit" $rconpw | netcat -uc $srvaddr $srvport
Reply

#3
Example #1 did what I wanted, thanks for the help! Now I've got my git server is all set up Smile
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] Opensuse Leap 15.1 and Server.cfg ldegroot 3 250 08-01-2019, 02:52 PM
Last Post: ldegroot
  LAN server console commands dbl 1 471 06-13-2019, 04:55 AM
Last Post: martin-t
  How to change server cfg on modified server veecho 4 710 04-24-2019, 08:15 PM
Last Post: BuddyFriendGuy
  Server error "Weapon stats writing failed: -404" FlufyBuny 1 362 04-13-2019, 04:36 AM
Last Post: It'sMe
  Dedicated server setup Rec0d 5 701 04-03-2019, 02:00 PM
Last Post: Rec0d
  South American Dedicated Server Professor 3 718 03-03-2019, 07:02 PM
Last Post: end user
Information [TUTORIAL] Xonotic Server behind OPNSense (and pfSense) gurbe 0 498 01-27-2019, 09:07 AM
Last Post: gurbe
  Xonotic server running behind UDP proxy not working doombringeroperator 2 701 01-07-2019, 02:23 PM
Last Post: doombringeroperator
  [NEED HELP] Server show on the browser list, but I can't connect! Professor 1 706 12-19-2018, 11:39 AM
Last Post: Professor
  Server Setup for Dummies litvinenkotea 7 4,486 12-08-2018, 01:20 PM
Last Post: tehjester78

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-