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
  Docker Xonotic Dedicated Server ich777 15 2,446 10-08-2020, 11:15 AM
Last Post: BuddyFriendGuy
  BuddyFriendGuy Fun Server BuddyFriendGuy 22 7,916 10-08-2020, 11:14 AM
Last Post: BuddyFriendGuy
Rainbow Kotangєns' independent server Kotangens 2 426 10-07-2020, 05:08 AM
Last Post: L497
  RaspberryPi4 Server ablyveiled 2 620 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,039 08-19-2020, 10:17 PM
Last Post: ballerburg9005
  [SOLVED] I can't create my server. Kotangens 11 1,005 07-22-2020, 04:42 AM
Last Post: Kotangens
  curl_urls.txt update without restart BuddyFriendGuy 6 1,608 06-04-2020, 05:23 PM
Last Post: BuddyFriendGuy
Information [SOLVED] Server stops when I close command prompt on my PC Jewel 2 480 06-01-2020, 07:11 AM
Last Post: Jewel
  Server Hosting Issue Saevus 2 532 04-30-2020, 06:16 PM
Last Post: Saevus
  Server error "Weapon stats writing failed: -404" FlufyBuny 2 1,032 04-08-2020, 02:41 PM
Last Post: jwabbitt

Forum Jump:


Users browsing this thread:
1 Guest(s)

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