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
  Server does not start saddesad 2 229 11-25-2020, 04:39 AM
Last Post: saddesad
  [NEED HELP] Server failed to open socket on address... Hexactinal 2 240 11-21-2020, 04:28 PM
Last Post: Hexactinal
  Server Hosting Issue Saevus 3 862 11-11-2020, 02:53 PM
Last Post: :[:{b_e*r^f}:]:
  Docker Xonotic Dedicated Server ich777 15 3,191 10-08-2020, 11:15 AM
Last Post: BuddyFriendGuy
  BuddyFriendGuy Fun Server BuddyFriendGuy 22 8,578 10-08-2020, 11:14 AM
Last Post: BuddyFriendGuy
Rainbow Kotangєns' independent server Kotangens 2 583 10-07-2020, 05:08 AM
Last Post: L497
  RaspberryPi4 Server ablyveiled 2 955 08-19-2020, 10:36 PM
Last Post: ballerburg9005
Question [NEED HELP] Server uses 40% CPU whereas Nexuiz server runs with max 10% e-pig 6 2,448 08-19-2020, 10:17 PM
Last Post: ballerburg9005
  [SOLVED] I can't create my server. Kotangens 11 1,500 07-22-2020, 04:42 AM
Last Post: Kotangens
  curl_urls.txt update without restart BuddyFriendGuy 6 1,916 06-04-2020, 05:23 PM
Last Post: BuddyFriendGuy

Forum Jump:


Users browsing this thread:
1 Guest(s)

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