Browse Source

better gamelog naming

pull/713/head
lrob 9 years ago
parent
commit
bc4f0f6934
  1. 16
      Rust/rustserver

16
Rust/rustserver

@ -10,7 +10,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi
version="210215"
version="230215"
#### Variables ####
@ -26,20 +26,19 @@ steampass=""
# Server settings
servername="Rust LGSM Server"
ip="0.0.0.0"
port="28015" #+server.port
rconport="28016" #+rcon.port
rconpassword="CHANGE_ME" #+rcon.password
maxplayers="40" #+max.players
map="" #Optional +server.map "Procedural Map" or TestLevel
port="28015"
rconport="28016"
rconpassword="CHANGE_ME" #Don't let it blank but change it
maxplayers="50" #+max.players
# Advanced
map="" #Optional +server.map "Procedural Map" or TestLevel
worldsize="4000" #+server.worldsize default 4000
saveinterval="300" #+server.saveinterval in seconds
logfile="\"gamelog.txt\""
# https://developer.valvesoftware.com/wiki/Rust_Dedicated_Server
fn_parms(){
parms="-batchmode +server.hostname \"${servername}\" +server.identity \"${servicename}\" +server.maxplayers ${maxplayers} +server.worldsize ${worldsize} +server.saveinterval ${saveinterval} +rcon.port ${rconport} +rcon.password \"${rconpassword}\" -datadir \"serverdata/\" -logfile ${logfile}"
parms="-batchmode +server.hostname \"${servername}\" +server.identity \"${servicename}\" +server.maxplayers ${maxplayers} +server.worldsize ${worldsize} +server.saveinterval ${saveinterval} +rcon.port ${rconport} +rcon.password \"${rconpassword}\" -datadir \"serverdata/\" -logfile ${gamelogfile}"
}
#### Advanced Variables ####
@ -84,6 +83,7 @@ gamelog="${gamelogdir}/${servicename}-game.log"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
gamelogfile="\"gamelog-$(date '+%Y-%m-%d-%H-%M-%S').log\""
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"

Loading…
Cancel
Save