|
|
@ -39,7 +39,7 @@ tickrate="30" # default 30; range : 15 to 100 |
|
|
|
|
|
|
|
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters |
|
|
|
fn_parms(){ |
|
|
|
parms="-batchmode +server.ip ${ip} +server.port ${port} +server.tickrate ${tickrate} +server.hostname \"${servername}\" +server.identity \"${servicename}\" ${conditionalseed} +server.maxplayers ${maxplayers} +server.worldsize ${worldsize} +server.saveinterval ${saveinterval} +rcon.web ${rconweb} +rcon.ip ${ip} +rcon.port ${rconport} +rcon.password \"${rconpassword}\" -logfile ${gamelogfile}" |
|
|
|
parms="-batchmode +server.ip ${ip} +server.port ${port} +server.tickrate ${tickrate} +server.hostname \"${servername}\" +server.identity \"${servicename}\" ${conditionalseed} +server.maxplayers ${maxplayers} +server.worldsize ${worldsize} +server.saveinterval ${saveinterval} +rcon.web ${rconweb} +rcon.ip ${ip} +rcon.port ${rconport} +rcon.password \"${rconpassword}\" -logfile \"${gamelogdate}\"" |
|
|
|
} |
|
|
|
|
|
|
|
# Specific to Rust |
|
|
@ -132,7 +132,6 @@ backupdir="${rootdir}/backups" |
|
|
|
gamelogdir="${rootdir}/log/server" |
|
|
|
scriptlogdir="${rootdir}/log/script" |
|
|
|
consolelogdir="${rootdir}/log/console" |
|
|
|
gamelog="${gamelogdir}/${servicename}-game.log" |
|
|
|
scriptlog="${scriptlogdir}/${servicename}-script.log" |
|
|
|
consolelog="${consolelogdir}/${servicename}-console.log" |
|
|
|
emaillog="${scriptlogdir}/${servicename}-email.log" |
|
|
@ -140,7 +139,7 @@ emaillog="${scriptlogdir}/${servicename}-email.log" |
|
|
|
## Logs Naming |
|
|
|
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
|
|
|
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
|
|
|
gamelogfile="\"gamelog-$(date '+%Y-%m-%d-%H-%M-%S').log\"" |
|
|
|
gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log" |
|
|
|
|
|
|
|
######################## |
|
|
|
######## Script ######## |
|
|
|