_default.cfg 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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_leningrad"
  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 ${serverfiles} +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 2"
  46. engine="iw2.0"
  47. ## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
  48. servicename="cod2-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. serverfiles="${rootdir}/serverfiles"
  60. ## Server Specific Directories
  61. systemdir="${serverfiles}"
  62. executabledir="${serverfiles}"
  63. executable="./cod2_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. logdir="${rootdir}/log"
  72. gamelogdir="${serverfiles}/Logs"
  73. lgsmlogdir="${logdir}/script"
  74. consolelogdir="${logdir}/console"
  75. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  76. consolelog="${consolelogdir}/${servicename}-console.log"
  77. emaillog="${lgsmlogdir}/${servicename}-email.log"
  78. ## Logs Naming
  79. lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  80. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"