- License
- GPL/GNU
- Additional Requirements
- Linux or other python and BASH supported OS
- Compatible Game Versions
- 1.0
- 1.1
- 1.2
- 1.3
- 1.4
- 2.0
These set of scripts are used to capture daily snapshots of the save files
capture server utilization stats every hour
capture server details via telnet hourly
run server as a systemd service. Options used resolve specific limits of running it as a simple application script in linux.
I have my 7days installed in /home/7days/ and this is done as I migrate the setup to a chroot jail setup further securing things from hackers.
capture server utilization stats every hour
capture server details via telnet hourly
run server as a systemd service. Options used resolve specific limits of running it as a simple application script in linux.
I have my 7days installed in /home/7days/ and this is done as I migrate the setup to a chroot jail setup further securing things from hackers.
- Install / Usage Instructions
- Scripts are mostly installed in /usr/local/bin
startserver.sh is to replace the startserver.sh that comes with the game.
7days.service is placed in /etc/systemd/system/
The scripts are added to crontab by invoking sudo crontab -e
and adding:
0 5 * * * /usr/local/bin/backup.sh
#@reboot sleep 120 && service 7days restart
@hourly /usr/local/bin/cpu7days.sh
@hourly /usr/local/bin/telnet.sh
@weekly /usr/local/bin/cleanlog.sh
@weekly /usr/local/bin/cleanbackup.sh
@weekly /usr/local/bin/outputlogclean.sh