_default.cfg 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. defaultmap="mp_neuville"
  11. maxclients="20"
  12. port="28960"
  13. ip="0.0.0.0"
  14. ## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
  15. fn_parms(){
  16. parms="+set sv_punkbuster 0 +set fs_basepath ${filesdir} +set dedicated 1 +set net_ip ${ip} +set net_port ${port} +set sv_maxclients ${maxclients} +exec ${servercfg} +map ${defaultmap}"
  17. }
  18. #### LinuxGSM Settings ####
  19. ## Notification Alerts
  20. # (on|off)
  21. # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
  22. emailalert="off"
  23. email="email@example.com"
  24. emailfrom=""
  25. # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
  26. pushbulletalert="off"
  27. pushbullettoken="accesstoken"
  28. channeltag=""
  29. ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
  30. maxbackups="4"
  31. maxbackupdays="30"
  32. stoponbackup="on"
  33. ## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
  34. consolelogging="on"
  35. logdays="7"
  36. #### Advanced Variables ####
  37. ## Github Branch Select
  38. # Allows for the use of different function files
  39. # from a different repo and/or branch.
  40. githubuser="GameServerManagers"
  41. githubrepo="LinuxGSM"
  42. githubbranch="master"
  43. ## LinuxGSM Server Details
  44. # Do not edit
  45. gamename="Call of Duty"
  46. engine="idtech3"
  47. ## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
  48. servicename="cod-server"
  49. #### Directories ####
  50. # Edit with care
  51. ## Work Directories
  52. rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
  53. selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  54. lockselfname=".${servicename}.lock"
  55. lgsmdir="${rootdir}/lgsm"
  56. functionsdir="${lgsmdir}/functions"
  57. libdir="${lgsmdir}/lib"
  58. tmpdir="${lgsmdir}/tmp"
  59. filesdir="${rootdir}/serverfiles"
  60. ## Server Specific Directories
  61. systemdir="${filesdir}"
  62. executabledir="${filesdir}"
  63. executable="./cod_lnxded"
  64. servercfg="${servicename}.cfg"
  65. servercfgdefault="server.cfg"
  66. servercfgdir="${systemdir}/main"
  67. servercfgfullpath="${servercfgdir}/${servercfg}"
  68. ## Backup Directory
  69. backupdir="${rootdir}/backups"
  70. ## Logging Directories
  71. gamelogdir="${filesdir}/Logs"
  72. scriptlogdir="${rootdir}/log/script"
  73. consolelogdir="${rootdir}/log/console"
  74. scriptlog="${scriptlogdir}/${servicename}-script.log"
  75. consolelog="${consolelogdir}/${servicename}-console.log"
  76. emaillog="${scriptlogdir}/${servicename}-email.log"
  77. ## Logs Naming
  78. scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  79. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"