Created
August 12, 2019 00:01
-
-
Save DonMills/926a32e21728305c5b207f5d6dd472ff to your computer and use it in GitHub Desktop.
FreeNAS Terraria Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export TERM="screen" | |
/usr/local/bin/screen -S terraria -d -m /usr/local/bin/mono /mnt/TerrariaServer.exe -world /mnt/First.wld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
. /etc/rc.subr | |
name=terraria | |
rcvar=terraria_enabled | |
command="/mnt/startserv.sh" | |
load_rc_config $name | |
run_rc_command "$1" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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