_default.cfg 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ##################################
  2. ######## Default Settings ########
  3. ##################################
  4. # DO NOT EDIT WILL BE OVERWRITTEN!
  5. # Copy settings from here and use them in either
  6. # common.cfg - applies settings to every instance
  7. # [instance].cfg - applies settings to a specific instance
  8. #### Server Settings ####
  9. ## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
  10. javaram="1024" # -Xmx$1024M
  11. ## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
  12. fn_parms(){
  13. parms="nogui"
  14. }
  15. #### LinuxGSM Settings ####
  16. ## Notification Alerts
  17. # (on|off)
  18. # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
  19. emailalert="off"
  20. email="email@example.com"
  21. emailfrom=""
  22. # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
  23. pushbulletalert="off"
  24. pushbullettoken="accesstoken"
  25. channeltag=""
  26. ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
  27. updateonstart="off"
  28. ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
  29. maxbackups="4"
  30. maxbackupdays="30"
  31. stoponbackup="on"
  32. ## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
  33. consolelogging="on"
  34. logdays="7"
  35. #### LinuxGSM Advanced Settings ####
  36. ## LinuxGSM Server Details
  37. # Do not edit
  38. gamename="Minecraft"
  39. engine="lwjgl2"
  40. #### Directories ####
  41. # Edit with care
  42. ## Work Directories
  43. rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
  44. selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  45. lockselfname=".${servicename}.lock"
  46. lgsmdir="${rootdir}/lgsm"
  47. functionsdir="${lgsmdir}/functions"
  48. serverfiles="${rootdir}/serverfiles"
  49. ## Server Specific Directories
  50. systemdir="${serverfiles}"
  51. executabledir="${serverfiles}"
  52. executable="java -Xmx${javaram}M -jar ${serverfiles}/minecraft_server.jar"
  53. servercfg="server.properties"
  54. servercfgdefault="server.properties"
  55. servercfgdir="${serverfiles}"
  56. servercfgfullpath="${servercfgdir}/${servercfg}"
  57. ## Backup Directory
  58. backupdir="${rootdir}/backups"
  59. ## Logging Directories
  60. logdir="${rootdir}/log"
  61. gamelogdir="${systemdir}/logs"
  62. lgsmlogdir="${logdir}/script"
  63. consolelogdir="${logdir}/console"
  64. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  65. consolelog="${consolelogdir}/${servicename}-console.log"
  66. emaillog="${lgsmlogdir}/${servicename}-email.log"
  67. ## Logs Naming
  68. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  69. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"