BASH script for start/stop/update/backup TDSM
Posted 28 April 2012 - 10:18 PM
Besides MONO the script is using typical normal UNIX applications that should be included in most distrubutions such as Ubuntu.
The script is well suited to be scheduled in crontab for daily backups or used to start and stop the server at system startup.
I have only tested the script on my Mac OS X Server but it should work on any kind of UNIX system.
# Script name: terraria_server.sh
# Author: Tommy Frössman
# - UNIX Operating System with terminal access.
# - BASH (Bourne Again Shell) shell available.
# - MONO (Microsoft.NET Framework) software installed.
# - GNU screen software installed.
# - GNU wget software installed.
# - install functionality.
# - automatic configuration presets when installing.
# - start/stop functionality.
# - restart functionality.
# - backup functionality (both offline and online).
# - updating functionality.
# - sending custom server commands functionality.
# - show server statistics using the status server command.
# - show running state of server.
# - placing server engine in background using GNU Screen session.
Posted 28 April 2012 - 11:21 PM
autodetection of system can be done easily
if [ $(uname) == "Darwin" ] then WGET_COMMAND="curl -s " else WGET_COMMAND="wget -q " fi
Posted 29 April 2012 - 08:18 PM
Posted 20 May 2013 - 01:44 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users