[1] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | # Root directory where steamcmd should be placed
|
---|
| 4 | export STEAMCMD_ROOT=/home/sdtd/steamcmd
|
---|
| 5 | export STEAM_USER=
|
---|
| 6 | export STEAM_PASS=
|
---|
| 7 |
|
---|
| 8 | # Root directory of the engine
|
---|
| 9 | export SDTD_ROOT=/home/sdtd/7dtd
|
---|
| 10 | export SDTD_SERVERCONFIG=$SDTD_ROOT/../serverconfig.xml
|
---|
| 11 |
|
---|
| 12 | # Root directory for backups
|
---|
| 13 | export SDTD_BACKUP_ROOT=/home/sdtd/backup
|
---|
| 14 |
|
---|
| 15 | # User account and group to run the server
|
---|
| 16 | export SDTD_USER=sdtd
|
---|
| 17 | export SDTD_GROUP=sdtd
|
---|
| 18 |
|
---|
| 19 | # World to load
|
---|
| 20 | export SDTD_WORLD=Navezgane
|
---|
| 21 |
|
---|
| 22 | # Name of savegame to load
|
---|
| 23 | export SDTD_SAVE=a7
|
---|
| 24 |
|
---|
| 25 | # Base port to use for networking
|
---|
| 26 | # Note that baseport (UDP) and base+1 up to base+3 (each TCP) will be used
|
---|
| 27 | export SDTD_PORT=25000
|
---|
| 28 |
|
---|
| 29 | # Set this to a reasonable value to get notified if the engine uses up too much RAM
|
---|
| 30 | # Value in mebibytes (MiB)
|
---|
| 31 | # For a server only used for 7dtd this should be ~500 MiB lower than the machines total RAM
|
---|
| 32 | export MEM_NOTIFY_MAX_RAM=2500
|
---|
| 33 |
|
---|
| 34 | # If limit exceeded notify someone by email?
|
---|
| 35 | export MEM_NOTIFY_MAIL=no
|
---|
| 36 |
|
---|
| 37 | # If limit exceeded notify someone by XMPP (aka Jabber)?
|
---|
| 38 | export MEM_NOTIFY_XMPP=yes
|
---|
| 39 |
|
---|
| 40 | # XMPP user to use for sending
|
---|
| 41 | export XMPP_USER=
|
---|
| 42 | # XMPP server for sending
|
---|
| 43 | export XMPP_SERVER=
|
---|
| 44 | # XMPP account password
|
---|
| 45 | export XMPP_PASSWORD=
|
---|
| 46 | # Receiver of message
|
---|
| 47 | export XMPP_TARGET=
|
---|
| 48 |
|
---|
| 49 | # Mail from field
|
---|
| 50 | export MAIL_FROM=
|
---|
| 51 | # Mail receiver
|
---|
| 52 | export MAIL_TO=
|
---|
| 53 | # Subject of mail
|
---|
| 54 | export MAIL_SUBJECT=7dtd memory usage
|
---|
| 55 | # SMTP server to use for sending
|
---|
| 56 | export MAIL_SMTP=
|
---|
| 57 | # SMTP user (not used if empty)
|
---|
| 58 | export MAIL_USER=
|
---|
| 59 | # SMTP password (not used if empty)
|
---|
| 60 | export MAIL_PASS=
|
---|
| 61 |
|
---|
| 62 | # Paths to binaries. Use "which BINARYNAME" to find the path of a single binary
|
---|
| 63 | export CP=/bin/cp
|
---|
| 64 | export RSYNC=/usr/bin/rsync
|
---|
| 65 | export DU=/usr/bin/du
|
---|
| 66 | export FREE=/usr/bin/free
|
---|
| 67 | export AWK=/usr/bin/awk
|
---|
| 68 | export PIDOF=/bin/pidof
|
---|
| 69 | export WINE=/usr/bin/wine
|
---|
| 70 |
|
---|
| 71 | if [ -e $SDTD_SERVERCONFIG ]; then
|
---|
| 72 | export SDTD_TELNET_ENABLED=`xmllint --xpath "string(/ServerSettings/property[@name='TelnetEnabled']/@value)" $SDTD_SERVERCONFIG`
|
---|
| 73 | export SDTD_TELNET_PORT=`xmllint --xpath "string(/ServerSettings/property[@name='TelnetPort']/@value)" $SDTD_SERVERCONFIG`
|
---|
| 74 | export SDTD_TELNET_PASSWORD=`xmllint --xpath "string(/ServerSettings/property[@name='TelnetPassword']/@value)" $SDTD_SERVERCONFIG`
|
---|
| 75 | fi
|
---|