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

Loading…
Cancel
Save