Skip to content

Instantly share code, notes, and snippets.

@DonMills
Created August 12, 2019 00:01
Show Gist options
  • Save DonMills/926a32e21728305c5b207f5d6dd472ff to your computer and use it in GitHub Desktop.
Save DonMills/926a32e21728305c5b207f5d6dd472ff to your computer and use it in GitHub Desktop.
FreeNAS Terraria Server
#!/bin/sh
export TERM="screen"
/usr/local/bin/screen -S terraria -d -m /usr/local/bin/mono /mnt/TerrariaServer.exe -world /mnt/First.wld
#!/bin/sh
. /etc/rc.subr
name=terraria
rcvar=terraria_enabled
command="/mnt/startserv.sh"
load_rc_config $name
run_rc_command "$1"
@DonMills
Copy link
Author

Make a FreeNAS jail, insert world directory ( I used on on NAS storage and mounted into jail at /mnt) and unzip latest linux terraria server files in the directory. Add the terraria rc.d file in /etc/rc.d/, and put startserv.sh in the terraria directory.

Also need pkg install mono screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment