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
  How to change server cfg on modified server veecho 4 311 04-24-2019, 08:15 PM
Last Post: BuddyFriendGuy
  Server error "Weapon stats writing failed: -404" FlufyBuny 1 173 04-13-2019, 04:36 AM
Last Post: It'sMe
  Dedicated server setup Rec0d 5 277 04-03-2019, 02:00 PM
Last Post: Rec0d
  South American Dedicated Server Professor 3 486 03-03-2019, 07:02 PM
Last Post: end user
Information [TUTORIAL] Xonotic Server behind OPNSense (and pfSense) gurbe 0 316 01-27-2019, 09:07 AM
Last Post: gurbe
  Xonotic server running behind UDP proxy not working doombringeroperator 2 457 01-07-2019, 02:23 PM
Last Post: doombringeroperator
  [NEED HELP] Server show on the browser list, but I can't connect! Professor 1 425 12-19-2018, 11:39 AM
Last Post: Professor
  Server Setup for Dummies litvinenkotea 7 4,020 12-08-2018, 01:20 PM
Last Post: tehjester78
  curl_urls.txt update without restart BuddyFriendGuy 1 673 12-02-2018, 07:59 PM
Last Post: BuddyFriendGuy
  Local LAN Xonotic game server player Stats animatedjay 3 854 11-23-2018, 12:38 AM
Last Post: BuddyFriendGuy

Forum Jump:


Users browsing this thread:
1 Guest(s)

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