And for the love of learning, avoid using AI for configuration, learn how to run things. I have been in the IT industry for over 2 decades and I can tell you this AI stuff will give us nothing but woe if we lean on it too much when it is in its infancy. We have at least another decade before we see anything approaching any level of competency with usage from it in all aspects.
Look up posts under me, I have some write ups for ubuntu server I am running out of the house.
To track CPU usage over time:
So since the game has a bit of a memory leak perofrmance issue, tracking your processor performance is a good thing.
So what command can we use to grab test and port to a text file?
top -b -n 1 -d 3 -o +%CPU | sed -e '1,/PID/d' | head -4 | ts '[%Y-%m-%d %H:%M:%S]' >> cpu_usage.log
top is the linux equivalent to task manager. You just have to use the kill command and the pid of the offending process. sed is a text processing command. Head is a command to display x number of lines that you specify of the output of a text stream. ts is a command used to add a timestamp to the...
Setting up your server as a service:
OK, I have been going through startup issues on the game. I have added lines to delay start after restart.
7days.service now reads as follows:
[Unit]
Description=7 days server as a service
Documentation=
https://community.thefunpimps.com
After=network-online.target
[Timer]
OnBootSec=1min
[Service]
Type=simple
ExecStart=/usr/local/bin/7days.sh # Replace with the actual path to your script
Restart=always
LimitNOFILE=10240
[Install]
WantedBy=multi-user.target
To run a daily backup script:
I looked through linux GSM and there is one thing missing a good backup script. In my case in Ubuntu I will be backing up locally and do a manual backup to a thumb drive and rotate thumb drives. Backup best practices are you have a local backup and an offsite backup a minimum of 50 miles away ( think a nuke goes off you have a clean copy of your files to restore worst case scenario.) In my case the thumb drives will be rotated between home and a separate property with a fireproof safe
first let us make the backup directory:
sudo mkdir /home/backup
now set us make the backup script...
This is a serverconfig.xml file I heavily commented to help aid in setting up crossplay compatible settings:
This is the updated xml file I believe with the line breaks removed.
This one is not me but documents how to setup the web dashboard to display the game map already explored:
I've been waiting on Alloc to write up official documentation for it. (note that Bob's post is all messed up now from the forum migration.)
Last time I asked about documents, I was informed that we are expected to just use the command console for it, and the help information there is good enough.
umm....with respect, the help information is a tad on a lack luster side.
I don't even have the command options for createwebuser or junkDrone commands. Just that they require x number of operators to successfully run...
Honestly I have found if we are waiting on someone to do...
(handy if you are mainly playing with console players.)
I also strongly suggest you explicitly state in the serverconfig.xml file where the save files are to be placed.
If you have trouble understanding how linux works I suggest watching videos on prepping for the RHEL and LPIC certifications.