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
  RaspberryPi4 Server ablyveiled 1 270 08-10-2020, 11:51 PM
Last Post: Freddy
Rainbow Kotangєns' independent server Kotangens 0 239 07-30-2020, 06:22 AM
Last Post: Kotangens
  [NEED HELP] I can't create my server. Kotangens 11 670 07-22-2020, 04:42 AM
Last Post: Kotangens
  curl_urls.txt update without restart BuddyFriendGuy 6 1,407 06-04-2020, 05:23 PM
Last Post: BuddyFriendGuy
Information [SOLVED] Server stops when I close command prompt on my PC Jewel 2 324 06-01-2020, 07:11 AM
Last Post: Jewel
  Server Hosting Issue Saevus 2 405 04-30-2020, 06:16 PM
Last Post: Saevus
  Server error "Weapon stats writing failed: -404" FlufyBuny 2 906 04-08-2020, 02:41 PM
Last Post: jwabbitt
  Docker Xonotic Dedicated Server ich777 13 1,939 04-02-2020, 02:59 PM
Last Post: FAF
  [NEED HELP] Server dont appear in server browser abslimit 0 444 03-15-2020, 04:13 AM
Last Post: abslimit
  How To Open Server? Lyviq 0 441 03-11-2020, 05:19 PM
Last Post: Lyviq

Forum Jump:


Users browsing this thread:
1 Guest(s)

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