Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 70.97 KB | None | 0 0
  1. + version=210516
  2. + emailalert=off
  3. + email=email@example.com
  4. + pushbulletalert=off
  5. + pushbullettoken=accesstoken
  6. + steamuser=anonymous
  7. + steampass=
  8. + gametype=0
  9. + gamemode=0
  10. + defaultmap=de_dust2
  11. + mapgroup=random_classic
  12. + maxplayers=16
  13. + tickrate=64
  14. + port=27015
  15. + sourcetvport=27020
  16. + clientport=27005
  17. + ip=0.0.0.0
  18. + updateonstart=off
  19. + gslt=FA9A45A352B1D7FFC651D11BAF0C4C87
  20. + githubuser=GameServerManagers
  21. + githubrepo=LinuxGSM
  22. + githubbranch=master
  23. + appid=740
  24. + branch=
  25. + servicename=csgo-server
  26. + gamename='Counter-Strike: Global Offensive'
  27. + engine=source
  28. +++ readlink -f ./csgoserver
  29. ++ dirname /home/CSGOServer/csgoserver
  30. + rootdir=/home/CSGOServer
  31. +++ readlink -f ./csgoserver
  32. ++ basename /home/CSGOServer/csgoserver
  33. + selfname=csgoserver
  34. + lockselfname=.csgo-server.lock
  35. + lgsmdir=/home/CSGOServer/lgsm
  36. + functionsdir=/home/CSGOServer/lgsm/functions
  37. + libdir=/home/CSGOServer/lgsm/lib
  38. + filesdir=/home/CSGOServer/serverfiles
  39. + systemdir=/home/CSGOServer/serverfiles/csgo
  40. + executabledir=/home/CSGOServer/serverfiles
  41. + executable=./srcds_run
  42. + servercfg=csgo-server.cfg
  43. + servercfgdir=/home/CSGOServer/serverfiles/csgo/cfg
  44. + servercfgfullpath=/home/CSGOServer/serverfiles/csgo/cfg/csgo-server.cfg
  45. + servercfgdefault=/home/CSGOServer/serverfiles/csgo/cfg/lgsm-default.cfg
  46. + backupdir=/home/CSGOServer/backups
  47. + logdays=7
  48. + gamelogdir=/home/CSGOServer/serverfiles/csgo/logs
  49. + scriptlogdir=/home/CSGOServer/log/script
  50. + consolelogdir=/home/CSGOServer/log/console
  51. + consolelogging=on
  52. + scriptlog=/home/CSGOServer/log/script/csgo-server-script.log
  53. + consolelog=/home/CSGOServer/log/console/csgo-server-console.log
  54. + emaillog=/home/CSGOServer/log/script/csgo-server-email.log
  55. ++ date +%d-%m-%Y-%H-%M-%S
  56. + scriptlogdate=/home/CSGOServer/log/script/csgo-server-script-23-09-2016-20-26-31.log
  57. ++ date +%d-%m-%Y-%H-%M-%S
  58. + consolelogdate=/home/CSGOServer/log/console/csgo-server-console-23-09-2016-20-26-31.log
  59. + core_dl.sh
  60. + functionfile=core_dl.sh
  61. + fn_fetch_core_dl
  62. + github_file_url_dir=lgsm/functions
  63. + github_file_url_name=core_dl.sh
  64. + filedir=/home/CSGOServer/lgsm/functions
  65. + filename=core_dl.sh
  66. + githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/core_dl.sh
  67. + '[' '!' -f /home/CSGOServer/lgsm/functions/core_dl.sh ']'
  68. + source /home/CSGOServer/lgsm/functions/core_dl.sh
  69. ++ local commandname=DOWNLOAD
  70. ++ local commandaction=Download
  71. ++++ readlink -f /home/CSGOServer/lgsm/functions/core_dl.sh
  72. +++ basename /home/CSGOServer/lgsm/functions/core_dl.sh
  73. ++ local function_selfname=core_dl.sh
  74. + core_functions.sh
  75. + functionfile=core_functions.sh
  76. + fn_fetch_core_dl
  77. + github_file_url_dir=lgsm/functions
  78. + github_file_url_name=core_functions.sh
  79. + filedir=/home/CSGOServer/lgsm/functions
  80. + filename=core_functions.sh
  81. + githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/core_functions.sh
  82. + '[' '!' -f /home/CSGOServer/lgsm/functions/core_functions.sh ']'
  83. + source /home/CSGOServer/lgsm/functions/core_functions.sh
  84. ++ '[' 'Counter-Strike: Global Offensive' == 'Teamspeak 3' ']'
  85. ++ '[' 'Counter-Strike: Global Offensive' == 'Counter Strike: Global Offensive' ']'
  86. ++ '[' 'Counter-Strike: Global Offensive' == 'Counter Strike: Source' ']'
  87. ++ '[' '' == on ']'
  88. ++ '[' -z /home/CSGOServer/lgsm ']'
  89. ++ '[' -z /home/CSGOServer/lgsm/functions ']'
  90. ++ '[' -z /home/CSGOServer/lgsm/lib ']'
  91. ++ core_trap.sh
  92. ++ functionfile=core_trap.sh
  93. ++ fn_fetch_core_dl
  94. ++ github_file_url_dir=lgsm/functions
  95. ++ github_file_url_name=core_trap.sh
  96. ++ filedir=/home/CSGOServer/lgsm/functions
  97. ++ filename=core_trap.sh
  98. ++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/core_trap.sh
  99. ++ '[' '!' -f /home/CSGOServer/lgsm/functions/core_trap.sh ']'
  100. ++ source /home/CSGOServer/lgsm/functions/core_trap.sh
  101. +++ trap fn_exit_trap INT
  102. ++ core_messages.sh
  103. ++ functionfile=core_messages.sh
  104. ++ fn_fetch_core_dl
  105. ++ github_file_url_dir=lgsm/functions
  106. ++ github_file_url_name=core_messages.sh
  107. ++ filedir=/home/CSGOServer/lgsm/functions
  108. ++ filename=core_messages.sh
  109. ++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/core_messages.sh
  110. ++ '[' '!' -f /home/CSGOServer/lgsm/functions/core_messages.sh ']'
  111. ++ source /home/CSGOServer/lgsm/functions/core_messages.sh
  112. +++ '[' '' '!=' off ']'
  113. +++ default='\e[0m'
  114. +++ red='\e[31m'
  115. +++ green='\e[32m'
  116. +++ yellow='\e[33m'
  117. +++ lightyellow='\e[93m'
  118. +++ blue='\e[34m'
  119. +++ lightblue='\e[94m'
  120. +++ magenta='\e[35m'
  121. +++ cyan='\e[36m'
  122. +++ creeol='\r\033[K'
  123. ++ core_dl.sh
  124. ++ functionfile=core_dl.sh
  125. ++ fn_fetch_core_dl
  126. ++ github_file_url_dir=lgsm/functions
  127. ++ github_file_url_name=core_dl.sh
  128. ++ filedir=/home/CSGOServer/lgsm/functions
  129. ++ filename=core_dl.sh
  130. ++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/core_dl.sh
  131. ++ '[' '!' -f /home/CSGOServer/lgsm/functions/core_dl.sh ']'
  132. ++ source /home/CSGOServer/lgsm/functions/core_dl.sh
  133. +++ local commandname=DOWNLOAD
  134. +++ local commandaction=Download
  135. +++++ readlink -f /home/CSGOServer/lgsm/functions/core_dl.sh
  136. ++++ basename /home/CSGOServer/lgsm/functions/core_dl.sh
  137. +++ local function_selfname=core_dl.sh
  138. + getopt=start
  139. + core_getopt.sh
  140. + functionfile=core_getopt.sh
  141. + fn_fetch_core_dl
  142. + github_file_url_dir=lgsm/functions
  143. + github_file_url_name=core_getopt.sh
  144. + filedir=/home/CSGOServer/lgsm/functions
  145. + filename=core_getopt.sh
  146. + githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/core_getopt.sh
  147. + '[' '!' -f /home/CSGOServer/lgsm/functions/core_getopt.sh ']'
  148. + source /home/CSGOServer/lgsm/functions/core_getopt.sh
  149. ++++ readlink -f /home/CSGOServer/lgsm/functions/core_getopt.sh
  150. +++ basename /home/CSGOServer/lgsm/functions/core_getopt.sh
  151. ++ local function_selfname=core_getopt.sh
  152. ++ '[' 'Counter-Strike: Global Offensive' == Mumble ']'
  153. ++ '[' source == lwjgl2 ']'
  154. ++ '[' 'Counter-Strike: Global Offensive' == 'TeamSpeak 3' ']'
  155. ++ '[' 'Counter-Strike: Global Offensive' == 'Garry'\''s Mod' ']'
  156. ++ '[' source == unreal2 ']'
  157. ++ '[' source == unreal ']'
  158. ++ fn_getopt_generic
  159. ++ case "${getopt}" in
  160. ++ command_start.sh
  161. ++ functionfile=command_start.sh
  162. ++ fn_fetch_function
  163. ++ github_file_url_dir=lgsm/functions
  164. ++ github_file_url_name=command_start.sh
  165. ++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/command_start.sh
  166. ++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/command_start.sh
  167. ++ filedir=/home/CSGOServer/lgsm/functions
  168. ++ filename=command_start.sh
  169. ++ executecmd=executecmd
  170. ++ run=run
  171. ++ force=noforce
  172. ++ md5=nomd5
  173. ++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/command_start.sh /home/CSGOServer/lgsm/functions command_start.sh executecmd run noforce nomd5
  174. ++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/command_start.sh
  175. ++ filedir=/home/CSGOServer/lgsm/functions
  176. ++ filename=command_start.sh
  177. ++ executecmd=executecmd
  178. ++ run=run
  179. ++ force=noforce
  180. ++ md5=nomd5
  181. ++ '[' '!' -f /home/CSGOServer/lgsm/functions/command_start.sh ']'
  182. ++ '[' -f /home/CSGOServer/lgsm/functions/command_start.sh ']'
  183. ++ fn_dl_md5
  184. ++ '[' nomd5 '!=' 0 ']'
  185. ++ '[' nomd5 '!=' nomd5 ']'
  186. ++ '[' run == run ']'
  187. ++ source /home/CSGOServer/lgsm/functions/command_start.sh
  188. +++ local commandname=START
  189. +++ local commandaction=Starting
  190. +++++ readlink -f /home/CSGOServer/lgsm/functions/command_start.sh
  191. ++++ basename /home/CSGOServer/lgsm/functions/command_start.sh
  192. +++ local function_selfname=command_start.sh
  193. +++ fn_print_dots ''
  194. +++ '[' -n Starting ']'
  195. +++ echo -en '\r\033[K[ .... ] Starting csgo-server: '
  196. +++ sleep 1
  197. +++ check.sh
  198. +++ functionfile=check.sh
  199. +++ fn_fetch_function
  200. +++ github_file_url_dir=lgsm/functions
  201. +++ github_file_url_name=check.sh
  202. +++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check.sh
  203. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check.sh
  204. +++ filedir=/home/CSGOServer/lgsm/functions
  205. +++ filename=check.sh
  206. +++ executecmd=executecmd
  207. +++ run=run
  208. +++ force=noforce
  209. +++ md5=nomd5
  210. +++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check.sh /home/CSGOServer/lgsm/functions check.sh executecmd run noforce nomd5
  211. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check.sh
  212. +++ filedir=/home/CSGOServer/lgsm/functions
  213. +++ filename=check.sh
  214. +++ executecmd=executecmd
  215. +++ run=run
  216. +++ force=noforce
  217. +++ md5=nomd5
  218. +++ '[' '!' -f /home/CSGOServer/lgsm/functions/check.sh ']'
  219. +++ '[' -f /home/CSGOServer/lgsm/functions/check.sh ']'
  220. +++ fn_dl_md5
  221. +++ '[' nomd5 '!=' 0 ']'
  222. +++ '[' nomd5 '!=' nomd5 ']'
  223. +++ '[' run == run ']'
  224. +++ source /home/CSGOServer/lgsm/functions/check.sh
  225. ++++ local commandname=CHECK
  226. ++++ check_root.sh
  227. ++++ functionfile=check_root.sh
  228. ++++ fn_fetch_function
  229. ++++ github_file_url_dir=lgsm/functions
  230. ++++ github_file_url_name=check_root.sh
  231. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_root.sh
  232. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_root.sh
  233. ++++ filedir=/home/CSGOServer/lgsm/functions
  234. ++++ filename=check_root.sh
  235. ++++ executecmd=executecmd
  236. ++++ run=run
  237. ++++ force=noforce
  238. ++++ md5=nomd5
  239. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_root.sh /home/CSGOServer/lgsm/functions check_root.sh executecmd run noforce nomd5
  240. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_root.sh
  241. ++++ filedir=/home/CSGOServer/lgsm/functions
  242. ++++ filename=check_root.sh
  243. ++++ executecmd=executecmd
  244. ++++ run=run
  245. ++++ force=noforce
  246. ++++ md5=nomd5
  247. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_root.sh ']'
  248. ++++ '[' -f /home/CSGOServer/lgsm/functions/check_root.sh ']'
  249. ++++ fn_dl_md5
  250. ++++ '[' nomd5 '!=' 0 ']'
  251. ++++ '[' nomd5 '!=' nomd5 ']'
  252. ++++ '[' run == run ']'
  253. ++++ source /home/CSGOServer/lgsm/functions/check_root.sh
  254. +++++ local commandname=CHECK
  255. +++++++ readlink -f /home/CSGOServer/lgsm/functions/check_root.sh
  256. ++++++ basename /home/CSGOServer/lgsm/functions/check_root.sh
  257. +++++ local function_selfname=check_root.sh
  258. ++++++ whoami
  259. +++++ '[' CSGOServer = root ']'
  260. ++++ check_permissions.sh
  261. ++++ functionfile=check_permissions.sh
  262. ++++ fn_fetch_function
  263. ++++ github_file_url_dir=lgsm/functions
  264. ++++ github_file_url_name=check_permissions.sh
  265. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_permissions.sh
  266. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_permissions.sh
  267. ++++ filedir=/home/CSGOServer/lgsm/functions
  268. ++++ filename=check_permissions.sh
  269. ++++ executecmd=executecmd
  270. ++++ run=run
  271. ++++ force=noforce
  272. ++++ md5=nomd5
  273. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_permissions.sh /home/CSGOServer/lgsm/functions check_permissions.sh executecmd run noforce nomd5
  274. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_permissions.sh
  275. ++++ filedir=/home/CSGOServer/lgsm/functions
  276. ++++ filename=check_permissions.sh
  277. ++++ executecmd=executecmd
  278. ++++ run=run
  279. ++++ force=noforce
  280. ++++ md5=nomd5
  281. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_permissions.sh ']'
  282. ++++ '[' -f /home/CSGOServer/lgsm/functions/check_permissions.sh ']'
  283. ++++ fn_dl_md5
  284. ++++ '[' nomd5 '!=' 0 ']'
  285. ++++ '[' nomd5 '!=' nomd5 ']'
  286. ++++ '[' run == run ']'
  287. ++++ source /home/CSGOServer/lgsm/functions/check_permissions.sh
  288. +++++ local commandname=CHECK
  289. +++++++ readlink -f /home/CSGOServer/lgsm/functions/check_permissions.sh
  290. ++++++ basename /home/CSGOServer/lgsm/functions/check_permissions.sh
  291. +++++ local function_selfname=check_permissions.sh
  292. +++++ fn_check_ownership
  293. +++++ '[' -f /home/CSGOServer/csgoserver ']'
  294. ++++++ wc -l
  295. +++++++ whoami
  296. ++++++ find /home/CSGOServer/csgoserver -not -user CSGOServer
  297. +++++ '[' 0 -ne 0 ']'
  298. +++++ '[' -d /home/CSGOServer/lgsm/functions ']'
  299. ++++++ wc -l
  300. +++++++ whoami
  301. ++++++ find /home/CSGOServer/lgsm/functions -not -user CSGOServer
  302. +++++ '[' 0 -ne 0 ']'
  303. +++++ '[' -d /home/CSGOServer/serverfiles ']'
  304. ++++++ wc -l
  305. +++++++ whoami
  306. ++++++ find /home/CSGOServer/serverfiles -not -user CSGOServer
  307. +++++ '[' 0 -ne 0 ']'
  308. +++++ '[' '' == 1 ']'
  309. +++++ '[' '' == 1 ']'
  310. +++++ '[' '' == 1 ']'
  311. +++++ fn_check_permissions
  312. +++++ '[' -d /home/CSGOServer/lgsm/functions ']'
  313. ++++++ find /home/CSGOServer/lgsm/functions -type f -not -executable
  314. ++++++ wc -l
  315. +++++ '[' 0 -ne 0 ']'
  316. +++++ '[' -n /home/CSGOServer ']'
  317. ++++++ stat -c %a /home/CSGOServer
  318. +++++ rootdirperm=700
  319. +++++ userrootdirperm=7
  320. +++++ grouprootdirperm=0
  321. +++++ '[' 7 '!=' 7 ']'
  322. ++++ '[' command_start.sh '!=' command_install.sh ']'
  323. ++++ '[' command_start.sh '!=' command_update_functions.sh ']'
  324. ++++ check_system_dir.sh
  325. ++++ functionfile=check_system_dir.sh
  326. ++++ fn_fetch_function
  327. ++++ github_file_url_dir=lgsm/functions
  328. ++++ github_file_url_name=check_system_dir.sh
  329. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_system_dir.sh
  330. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_system_dir.sh
  331. ++++ filedir=/home/CSGOServer/lgsm/functions
  332. ++++ filename=check_system_dir.sh
  333. ++++ executecmd=executecmd
  334. ++++ run=run
  335. ++++ force=noforce
  336. ++++ md5=nomd5
  337. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_system_dir.sh /home/CSGOServer/lgsm/functions check_system_dir.sh executecmd run noforce nomd5
  338. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_system_dir.sh
  339. ++++ filedir=/home/CSGOServer/lgsm/functions
  340. ++++ filename=check_system_dir.sh
  341. ++++ executecmd=executecmd
  342. ++++ run=run
  343. ++++ force=noforce
  344. ++++ md5=nomd5
  345. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_system_dir.sh ']'
  346. ++++ '[' -f /home/CSGOServer/lgsm/functions/check_system_dir.sh ']'
  347. ++++ fn_dl_md5
  348. ++++ '[' nomd5 '!=' 0 ']'
  349. ++++ '[' nomd5 '!=' nomd5 ']'
  350. ++++ '[' run == run ']'
  351. ++++ source /home/CSGOServer/lgsm/functions/check_system_dir.sh
  352. +++++ local commandname=CHECK
  353. +++++++ readlink -f /home/CSGOServer/lgsm/functions/check_system_dir.sh
  354. ++++++ basename /home/CSGOServer/lgsm/functions/check_system_dir.sh
  355. +++++ local function_selfname=check_system_dir.sh
  356. +++++ '[' '!' -d /home/CSGOServer/serverfiles/csgo ']'
  357. ++++ allowed_commands_array=(command_debug.sh command_start.sh command_install.sh)
  358. ++++ local allowed_commands_array
  359. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  360. ++++ '[' command_debug.sh == command_start.sh ']'
  361. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  362. ++++ '[' command_start.sh == command_start.sh ']'
  363. ++++ check_glibc.sh
  364. ++++ functionfile=check_glibc.sh
  365. ++++ fn_fetch_function
  366. ++++ github_file_url_dir=lgsm/functions
  367. ++++ github_file_url_name=check_glibc.sh
  368. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_glibc.sh
  369. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_glibc.sh
  370. ++++ filedir=/home/CSGOServer/lgsm/functions
  371. ++++ filename=check_glibc.sh
  372. ++++ executecmd=executecmd
  373. ++++ run=run
  374. ++++ force=noforce
  375. ++++ md5=nomd5
  376. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_glibc.sh /home/CSGOServer/lgsm/functions check_glibc.sh executecmd run noforce nomd5
  377. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_glibc.sh
  378. ++++ filedir=/home/CSGOServer/lgsm/functions
  379. ++++ filename=check_glibc.sh
  380. ++++ executecmd=executecmd
  381. ++++ run=run
  382. ++++ force=noforce
  383. ++++ md5=nomd5
  384. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_glibc.sh ']'
  385. ++++ '[' -f /home/CSGOServer/lgsm/functions/check_glibc.sh ']'
  386. ++++ fn_dl_md5
  387. ++++ '[' nomd5 '!=' 0 ']'
  388. ++++ '[' nomd5 '!=' nomd5 ']'
  389. ++++ '[' run == run ']'
  390. ++++ source /home/CSGOServer/lgsm/functions/check_glibc.sh
  391. +++++ local commandname=CHECK
  392. +++++ info_glibc.sh
  393. +++++ functionfile=info_glibc.sh
  394. +++++ fn_fetch_function
  395. +++++ github_file_url_dir=lgsm/functions
  396. +++++ github_file_url_name=info_glibc.sh
  397. +++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_glibc.sh
  398. +++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_glibc.sh
  399. +++++ filedir=/home/CSGOServer/lgsm/functions
  400. +++++ filename=info_glibc.sh
  401. +++++ executecmd=executecmd
  402. +++++ run=run
  403. +++++ force=noforce
  404. +++++ md5=nomd5
  405. +++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_glibc.sh /home/CSGOServer/lgsm/functions info_glibc.sh executecmd run noforce nomd5
  406. +++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_glibc.sh
  407. +++++ filedir=/home/CSGOServer/lgsm/functions
  408. +++++ filename=info_glibc.sh
  409. +++++ executecmd=executecmd
  410. +++++ run=run
  411. +++++ force=noforce
  412. +++++ md5=nomd5
  413. +++++ '[' '!' -f /home/CSGOServer/lgsm/functions/info_glibc.sh ']'
  414. +++++ '[' -f /home/CSGOServer/lgsm/functions/info_glibc.sh ']'
  415. +++++ fn_dl_md5
  416. +++++ '[' nomd5 '!=' 0 ']'
  417. +++++ '[' nomd5 '!=' nomd5 ']'
  418. +++++ '[' run == run ']'
  419. +++++ source /home/CSGOServer/lgsm/functions/info_glibc.sh
  420. ++++++++ readlink -f /home/CSGOServer/lgsm/functions/info_glibc.sh
  421. +++++++ basename /home/CSGOServer/lgsm/functions/info_glibc.sh
  422. ++++++ local function_selfname=info_glibc.sh
  423. ++++++ '[' 'Counter-Strike: Global Offensive' == 'Black Mesa: Deathmatch' ']'
  424. ++++++ '[' 'Counter-Strike: Global Offensive' == 'Blade Symphony' ']'
  425. ++++++ '[' 'Counter-Strike: Global Offensive' == 'BrainBread 2' ']'
  426. ++++++ '[' 'Counter-Strike: Global Offensive' == 'Day of Infamy' ']'
  427. ++++++ '[' 'Counter-Strike: Global Offensive' == 'Double Action: Boogaloo' ']'
  428. ++++++ '[' 'Counter-Strike: Global Offensive' == 'Empires Mod' ']'
  429. ++++++ '[' 'Counter-Strike: Global Offensive' == 'Fistful of Frags' ']'
  430. ++++++ '[' 'Counter-Strike: Global Offensive' == 'Garry'\''s Mod' ']'
  431. ++++++ '[' 'Counter-Strike: Global Offensive' == 'GoldenEye: Source' ']'
  432. ++++++ '[' 'Counter-Strike: Global Offensive' == Insurgency ']'
  433. ++++++ '[' 'Counter-Strike: Global Offensive' == Mumble ']'
  434. ++++++ '[' 'Counter-Strike: Global Offensive' == 'No More Room in Hell' ']'
  435. ++++++ '[' 'Counter-Strike: Global Offensive' == 'Quake Live' ']'
  436. ++++++ '[' 'Counter-Strike: Global Offensive' == 'TeamSpeak 3' ']'
  437. ++++++ '[' 'Counter-Strike: Global Offensive' == Teeworlds ']'
  438. ++++++ '[' source == avalanche ']'
  439. ++++++ '[' source == dontstarve ']'
  440. ++++++ '[' source == lwjgl2 ']'
  441. ++++++ '[' source == projectzomboid ']'
  442. ++++++ '[' source == realvirtuality ']'
  443. ++++++ '[' source == seriousengine35 ']'
  444. ++++++ '[' source == source ']'
  445. ++++++ glibcrequired=2.3.6
  446. ++++++ glibcfix=no
  447. +++++ info_distro.sh
  448. +++++ functionfile=info_distro.sh
  449. +++++ fn_fetch_function
  450. +++++ github_file_url_dir=lgsm/functions
  451. +++++ github_file_url_name=info_distro.sh
  452. +++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_distro.sh
  453. +++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_distro.sh
  454. +++++ filedir=/home/CSGOServer/lgsm/functions
  455. +++++ filename=info_distro.sh
  456. +++++ executecmd=executecmd
  457. +++++ run=run
  458. +++++ force=noforce
  459. +++++ md5=nomd5
  460. +++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_distro.sh /home/CSGOServer/lgsm/functions info_distro.sh executecmd run noforce nomd5
  461. +++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_distro.sh
  462. +++++ filedir=/home/CSGOServer/lgsm/functions
  463. +++++ filename=info_distro.sh
  464. +++++ executecmd=executecmd
  465. +++++ run=run
  466. +++++ force=noforce
  467. +++++ md5=nomd5
  468. +++++ '[' '!' -f /home/CSGOServer/lgsm/functions/info_distro.sh ']'
  469. +++++ '[' -f /home/CSGOServer/lgsm/functions/info_distro.sh ']'
  470. +++++ fn_dl_md5
  471. +++++ '[' nomd5 '!=' 0 ']'
  472. +++++ '[' nomd5 '!=' nomd5 ']'
  473. +++++ '[' run == run ']'
  474. +++++ source /home/CSGOServer/lgsm/functions/info_distro.sh
  475. ++++++++ readlink -f /home/CSGOServer/lgsm/functions/info_distro.sh
  476. +++++++ basename /home/CSGOServer/lgsm/functions/info_distro.sh
  477. ++++++ local function_selfname=info_distro.sh
  478. +++++++ uname -m
  479. ++++++ arch=x86_64
  480. +++++++ uname -r
  481. ++++++ kernel=3.10.0-327.22.2.el7.x86_64
  482. +++++++ command -v lsb_release
  483. ++++++ '[' -n '' ']'
  484. ++++++ '[' -f /etc/os-release ']'
  485. +++++++ grep PRETTY_NAME /etc/os-release
  486. +++++++ sed s/PRETTY_NAME=//g
  487. +++++++ tr -d '="'
  488. ++++++ distroname='CentOS Linux 7 (Core)'
  489. ++++++ '[' -f /etc/os-release ']'
  490. +++++++ grep VERSION_ID /etc/os-release
  491. +++++++ tr -cd '[:digit:]'
  492. ++++++ distroversion=7
  493. +++++++ ldd --version
  494. +++++++ sed -n '1s/.* //p'
  495. ++++++ glibcversion=2.17
  496. +++++++ command -v tmux
  497. ++++++ '[' -z /usr/local/bin/tmux ']'
  498. +++++++ tmux -V
  499. +++++++ sed 's/tmux //'
  500. +++++++ sed -n '1 p'
  501. +++++++ tr -cd '[:digit:]'
  502. ++++++ '[' 23 -lt 16 ']'
  503. +++++++ tmux -V
  504. ++++++ tmuxv='tmux 2.3'
  505. ++++++ uptime='2595719.10 10296046.07'
  506. ++++++ uptime=2595719
  507. ++++++ minutes=1
  508. ++++++ hours=1
  509. ++++++ days=30
  510. +++++++ uptime
  511. +++++++ awk -F 'load average: ' '{ print $2 }'
  512. ++++++ load='1.09, 0.49, 0.21'
  513. +++++++ free -h
  514. +++++++ echo 0
  515. ++++++ '[' 0 -ne 0 ']'
  516. ++++++ humanreadable=-h
  517. +++++++ free -h
  518. +++++++ awk '/Mem:/ {print $2}'
  519. ++++++ physmemtotal=15G
  520. +++++++ free -m
  521. +++++++ awk '/Mem:/ {print $2}'
  522. ++++++ physmemtotalmb=16039
  523. +++++++ free -h
  524. +++++++ awk '/Mem:/ {print $3}'
  525. ++++++ physmemused=548M
  526. +++++++ free -h
  527. +++++++ awk '/Mem:/ {print $4}'
  528. ++++++ physmemfree=534M
  529. +++++++ free -h
  530. +++++++ awk '/cache:/ {print $4}'
  531. ++++++ physmemcached=
  532. +++++++ free -h
  533. +++++++ awk '/Swap:/ {print $2}'
  534. ++++++ swaptotal=2.5G
  535. +++++++ free -h
  536. +++++++ awk '/Swap:/ {print $3}'
  537. ++++++ swapused=0B
  538. +++++++ free -h
  539. +++++++ awk '/Swap:/ {print $4}'
  540. ++++++ swapfree=2.5G
  541. +++++++ df -hP /home/CSGOServer
  542. +++++++ grep -v Filesystem
  543. +++++++ awk '{print $1}'
  544. ++++++ filesystem=/dev/sda3
  545. +++++++ df -hP /home/CSGOServer
  546. +++++++ grep -v Filesystem
  547. +++++++ awk '{print $2}'
  548. ++++++ totalspace=1.8T
  549. +++++++ df -hP /home/CSGOServer
  550. +++++++ grep -v Filesystem
  551. +++++++ awk '{print $3}'
  552. ++++++ usedspace=192G
  553. +++++++ df -hP /home/CSGOServer
  554. +++++++ grep -v Filesystem
  555. +++++++ awk '{print $4}'
  556. ++++++ availspace=1.5T
  557. +++++++ du -sh /home/CSGOServer
  558. +++++++ awk '{print $1}'
  559. ++++++ rootdirdu=15G
  560. ++++++ '[' -z 15G ']'
  561. +++++++ du -sh /home/CSGOServer/serverfiles
  562. +++++++ awk '{print $1}'
  563. ++++++ filesdirdu=15G
  564. ++++++ '[' -z 15G ']'
  565. +++++++ du -sh --exclude=/home/CSGOServer/backups /home/CSGOServer/serverfiles
  566. +++++++ awk '{print $1}'
  567. ++++++ rootdirduexbackup=15G
  568. ++++++ '[' -z 15G ']'
  569. ++++++ '[' -d /home/CSGOServer/backups ']'
  570. +++++ '[' 2.3.6 == 'NOT REQUIRED' ']'
  571. +++++ '[' 2.3.6 == UNKNOWN ']'
  572. ++++++ printf '%s\n2.3.6\n' 2.17
  573. ++++++ sort -V
  574. ++++++ head -n 1
  575. +++++ '[' 2.3.6 '!=' 2.3.6 ']'
  576. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  577. ++++ '[' command_install.sh == command_start.sh ']'
  578. ++++ allowed_commands_array=(command_backup.sh command_console.sh command_debug.sh command_details.sh command_unreal2_maps.sh command_ut99_maps.sh command_monitor.sh command_start.sh command_stop.sh command_update.sh command_validate.sh command_update_functions.sh command_email_test.sh)
  579. ++++ local allowed_commands_array
  580. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  581. ++++ '[' command_backup.sh == command_start.sh ']'
  582. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  583. ++++ '[' command_console.sh == command_start.sh ']'
  584. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  585. ++++ '[' command_debug.sh == command_start.sh ']'
  586. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  587. ++++ '[' command_details.sh == command_start.sh ']'
  588. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  589. ++++ '[' command_unreal2_maps.sh == command_start.sh ']'
  590. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  591. ++++ '[' command_ut99_maps.sh == command_start.sh ']'
  592. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  593. ++++ '[' command_monitor.sh == command_start.sh ']'
  594. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  595. ++++ '[' command_start.sh == command_start.sh ']'
  596. ++++ check_logs.sh
  597. ++++ functionfile=check_logs.sh
  598. ++++ fn_fetch_function
  599. ++++ github_file_url_dir=lgsm/functions
  600. ++++ github_file_url_name=check_logs.sh
  601. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_logs.sh
  602. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_logs.sh
  603. ++++ filedir=/home/CSGOServer/lgsm/functions
  604. ++++ filename=check_logs.sh
  605. ++++ executecmd=executecmd
  606. ++++ run=run
  607. ++++ force=noforce
  608. ++++ md5=nomd5
  609. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_logs.sh /home/CSGOServer/lgsm/functions check_logs.sh executecmd run noforce nomd5
  610. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_logs.sh
  611. ++++ filedir=/home/CSGOServer/lgsm/functions
  612. ++++ filename=check_logs.sh
  613. ++++ executecmd=executecmd
  614. ++++ run=run
  615. ++++ force=noforce
  616. ++++ md5=nomd5
  617. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_logs.sh ']'
  618. ++++ '[' -f /home/CSGOServer/lgsm/functions/check_logs.sh ']'
  619. ++++ fn_dl_md5
  620. ++++ '[' nomd5 '!=' 0 ']'
  621. ++++ '[' nomd5 '!=' nomd5 ']'
  622. ++++ '[' run == run ']'
  623. ++++ source /home/CSGOServer/lgsm/functions/check_logs.sh
  624. +++++ local commandname=CHECK
  625. +++++++ readlink -f /home/CSGOServer/lgsm/functions/check_logs.sh
  626. ++++++ basename /home/CSGOServer/lgsm/functions/check_logs.sh
  627. +++++ local function_selfname=check_logs.sh
  628. +++++ '[' '!' -d /home/CSGOServer/log/script ']'
  629. +++++ '[' '!' -d /home/CSGOServer/log/console ']'
  630. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  631. ++++ '[' command_stop.sh == command_start.sh ']'
  632. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  633. ++++ '[' command_update.sh == command_start.sh ']'
  634. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  635. ++++ '[' command_validate.sh == command_start.sh ']'
  636. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  637. ++++ '[' command_update_functions.sh == command_start.sh ']'
  638. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  639. ++++ '[' command_email_test.sh == command_start.sh ']'
  640. ++++ allowed_commands_array=(command_debug.sh command_start.sh command_stop.sh)
  641. ++++ local allowed_commands_array
  642. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  643. ++++ '[' command_debug.sh == command_start.sh ']'
  644. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  645. ++++ '[' command_start.sh == command_start.sh ']'
  646. ++++ check_deps.sh
  647. ++++ functionfile=check_deps.sh
  648. ++++ fn_fetch_function
  649. ++++ github_file_url_dir=lgsm/functions
  650. ++++ github_file_url_name=check_deps.sh
  651. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_deps.sh
  652. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_deps.sh
  653. ++++ filedir=/home/CSGOServer/lgsm/functions
  654. ++++ filename=check_deps.sh
  655. ++++ executecmd=executecmd
  656. ++++ run=run
  657. ++++ force=noforce
  658. ++++ md5=nomd5
  659. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_deps.sh /home/CSGOServer/lgsm/functions check_deps.sh executecmd run noforce nomd5
  660. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_deps.sh
  661. ++++ filedir=/home/CSGOServer/lgsm/functions
  662. ++++ filename=check_deps.sh
  663. ++++ executecmd=executecmd
  664. ++++ run=run
  665. ++++ force=noforce
  666. ++++ md5=nomd5
  667. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_deps.sh ']'
  668. ++++ '[' -f /home/CSGOServer/lgsm/functions/check_deps.sh ']'
  669. ++++ fn_dl_md5
  670. ++++ '[' nomd5 '!=' 0 ']'
  671. ++++ '[' nomd5 '!=' nomd5 ']'
  672. ++++ '[' run == run ']'
  673. ++++ source /home/CSGOServer/lgsm/functions/check_deps.sh
  674. +++++ local commandname=CHECK
  675. +++++ info_distro.sh
  676. +++++ functionfile=info_distro.sh
  677. +++++ fn_fetch_function
  678. +++++ github_file_url_dir=lgsm/functions
  679. +++++ github_file_url_name=info_distro.sh
  680. +++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_distro.sh
  681. +++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_distro.sh
  682. +++++ filedir=/home/CSGOServer/lgsm/functions
  683. +++++ filename=info_distro.sh
  684. +++++ executecmd=executecmd
  685. +++++ run=run
  686. +++++ force=noforce
  687. +++++ md5=nomd5
  688. +++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_distro.sh /home/CSGOServer/lgsm/functions info_distro.sh executecmd run noforce nomd5
  689. +++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_distro.sh
  690. +++++ filedir=/home/CSGOServer/lgsm/functions
  691. +++++ filename=info_distro.sh
  692. +++++ executecmd=executecmd
  693. +++++ run=run
  694. +++++ force=noforce
  695. +++++ md5=nomd5
  696. +++++ '[' '!' -f /home/CSGOServer/lgsm/functions/info_distro.sh ']'
  697. +++++ '[' -f /home/CSGOServer/lgsm/functions/info_distro.sh ']'
  698. +++++ fn_dl_md5
  699. +++++ '[' nomd5 '!=' 0 ']'
  700. +++++ '[' nomd5 '!=' nomd5 ']'
  701. +++++ '[' run == run ']'
  702. +++++ source /home/CSGOServer/lgsm/functions/info_distro.sh
  703. ++++++++ readlink -f /home/CSGOServer/lgsm/functions/info_distro.sh
  704. +++++++ basename /home/CSGOServer/lgsm/functions/info_distro.sh
  705. ++++++ local function_selfname=info_distro.sh
  706. +++++++ uname -m
  707. ++++++ arch=x86_64
  708. +++++++ uname -r
  709. ++++++ kernel=3.10.0-327.22.2.el7.x86_64
  710. +++++++ command -v lsb_release
  711. ++++++ '[' -n '' ']'
  712. ++++++ '[' -f /etc/os-release ']'
  713. +++++++ grep PRETTY_NAME /etc/os-release
  714. +++++++ sed s/PRETTY_NAME=//g
  715. +++++++ tr -d '="'
  716. ++++++ distroname='CentOS Linux 7 (Core)'
  717. ++++++ '[' -f /etc/os-release ']'
  718. +++++++ grep VERSION_ID /etc/os-release
  719. +++++++ tr -cd '[:digit:]'
  720. ++++++ distroversion=7
  721. +++++++ ldd --version
  722. +++++++ sed -n '1s/.* //p'
  723. ++++++ glibcversion=2.17
  724. +++++++ command -v tmux
  725. ++++++ '[' -z /usr/local/bin/tmux ']'
  726. +++++++ tmux -V
  727. +++++++ sed 's/tmux //'
  728. +++++++ sed -n '1 p'
  729. +++++++ tr -cd '[:digit:]'
  730. ++++++ '[' 23 -lt 16 ']'
  731. +++++++ tmux -V
  732. ++++++ tmuxv='tmux 2.3'
  733. ++++++ uptime='2595719.19 10296046.30'
  734. ++++++ uptime=2595719
  735. ++++++ minutes=1
  736. ++++++ hours=1
  737. ++++++ days=30
  738. +++++++ uptime
  739. +++++++ awk -F 'load average: ' '{ print $2 }'
  740. ++++++ load='1.09, 0.49, 0.21'
  741. +++++++ free -h
  742. +++++++ echo 0
  743. ++++++ '[' 0 -ne 0 ']'
  744. ++++++ humanreadable=-h
  745. +++++++ free -h
  746. +++++++ awk '/Mem:/ {print $2}'
  747. ++++++ physmemtotal=15G
  748. +++++++ free -m
  749. +++++++ awk '/Mem:/ {print $2}'
  750. ++++++ physmemtotalmb=16039
  751. +++++++ free -h
  752. +++++++ awk '/Mem:/ {print $3}'
  753. ++++++ physmemused=547M
  754. +++++++ free -h
  755. +++++++ awk '/Mem:/ {print $4}'
  756. ++++++ physmemfree=534M
  757. +++++++ free -h
  758. +++++++ awk '/cache:/ {print $4}'
  759. ++++++ physmemcached=
  760. +++++++ free -h
  761. +++++++ awk '/Swap:/ {print $2}'
  762. ++++++ swaptotal=2.5G
  763. +++++++ free -h
  764. +++++++ awk '/Swap:/ {print $3}'
  765. ++++++ swapused=0B
  766. +++++++ free -h
  767. +++++++ awk '/Swap:/ {print $4}'
  768. ++++++ swapfree=2.5G
  769. +++++++ df -hP /home/CSGOServer
  770. +++++++ grep -v Filesystem
  771. +++++++ awk '{print $1}'
  772. ++++++ filesystem=/dev/sda3
  773. +++++++ df -hP /home/CSGOServer
  774. +++++++ grep -v Filesystem
  775. +++++++ awk '{print $2}'
  776. ++++++ totalspace=1.8T
  777. +++++++ df -hP /home/CSGOServer
  778. +++++++ grep -v Filesystem
  779. +++++++ awk '{print $3}'
  780. ++++++ usedspace=192G
  781. +++++++ df -hP /home/CSGOServer
  782. +++++++ grep -v Filesystem
  783. +++++++ awk '{print $4}'
  784. ++++++ availspace=1.5T
  785. +++++++ du -sh /home/CSGOServer
  786. +++++++ awk '{print $1}'
  787. ++++++ rootdirdu=15G
  788. ++++++ '[' -z 15G ']'
  789. +++++++ du -sh /home/CSGOServer/serverfiles
  790. +++++++ awk '{print $1}'
  791. ++++++ filesdirdu=15G
  792. ++++++ '[' -z 15G ']'
  793. +++++++ du -sh --exclude=/home/CSGOServer/backups /home/CSGOServer/serverfiles
  794. +++++++ awk '{print $1}'
  795. ++++++ rootdirduexbackup=15G
  796. ++++++ '[' -z 15G ']'
  797. ++++++ '[' -d /home/CSGOServer/backups ']'
  798. +++++ '[' command_start.sh == command_install.sh ']'
  799. ++++++ command -v dpkg-query
  800. +++++ '[' -n '' ']'
  801. ++++++ command -v yum
  802. +++++ '[' -n /bin/yum ']'
  803. +++++ array_deps_missing=()
  804. +++++ '[' 7 == 6 ']'
  805. +++++ array_deps_required=(curl wget util-linux python file gzip bzip2)
  806. +++++ '[' 'Counter-Strike: Global Offensive' '!=' 'TeamSpeak 3' ']'
  807. ++++++ command -v tmux
  808. +++++ '[' /usr/local/bin/tmux ']'
  809. +++++ tmuxcheck=1
  810. +++++ '[' 'Counter-Strike: Global Offensive' '!=' 'TeamSpeak 3' ']'
  811. +++++ '[' 'Counter-Strike: Global Offensive' '!=' Mumble ']'
  812. +++++ '[' source '!=' lwjgl2 ']'
  813. +++++ array_deps_required+=(glibc.i686 libstdc++.i686)
  814. +++++ '[' source == spark ']'
  815. +++++ '[' 'Counter-Strike: Global Offensive' == '7 Days To Die' ']'
  816. +++++ '[' 'Counter-Strike: Global Offensive' == 'No More Room in Hell' ']'
  817. +++++ '[' 'Counter-Strike: Global Offensive' == 'Counter-Strike: Source' ']'
  818. +++++ '[' 'Counter-Strike: Global Offensive' == 'Garry'\''s Mod' ']'
  819. +++++ '[' 'Counter-Strike: Global Offensive' == 'Brainbread 2' ']'
  820. +++++ '[' 'Counter-Strike: Global Offensive' == 'Don'\''t Starve Together' ']'
  821. +++++ '[' source == projectzomboid ']'
  822. +++++ '[' source == lwjgl2 ']'
  823. +++++ '[' 'Counter-Strike: Global Offensive' == 'GoldenEye: Source' ']'
  824. +++++ '[' ./srcds_run == ./ucc-bin ']'
  825. +++++ '[' 'Counter-Strike: Global Offensive' == 'Unreal Tournament' ']'
  826. +++++ fn_deps_email
  827. +++++ '[' off == on ']'
  828. +++++ fn_check_loop
  829. +++++ for deptocheck in '"${array_deps_required[@]}"'
  830. +++++ fn_deps_detector
  831. +++++ '[' 1 == 1 ']'
  832. +++++ depstatus=0
  833. +++++ deptocheck=tmux
  834. +++++ unset tmuxcheck
  835. +++++ '[' 0 == 0 ']'
  836. +++++ missingdep=0
  837. +++++ '[' command_start.sh == command_install.sh ']'
  838. +++++ '[' 0 == 1 ']'
  839. +++++ for deptocheck in '"${array_deps_required[@]}"'
  840. +++++ fn_deps_detector
  841. +++++ '[' '' == 1 ']'
  842. +++++ '[' '' == 1 ']'
  843. ++++++ command -v apt-get
  844. +++++ '[' -n '' ']'
  845. ++++++ command -v yum
  846. +++++ '[' -n /bin/yum ']'
  847. +++++ yum -q list installed wget
  848. +++++ depstatus=0
  849. +++++ '[' 0 == 0 ']'
  850. +++++ missingdep=0
  851. +++++ '[' command_start.sh == command_install.sh ']'
  852. +++++ '[' 0 == 1 ']'
  853. +++++ for deptocheck in '"${array_deps_required[@]}"'
  854. +++++ fn_deps_detector
  855. +++++ '[' '' == 1 ']'
  856. +++++ '[' '' == 1 ']'
  857. ++++++ command -v apt-get
  858. +++++ '[' -n '' ']'
  859. ++++++ command -v yum
  860. +++++ '[' -n /bin/yum ']'
  861. +++++ yum -q list installed util-linux
  862. +++++ depstatus=0
  863. +++++ '[' 0 == 0 ']'
  864. +++++ missingdep=0
  865. +++++ '[' command_start.sh == command_install.sh ']'
  866. +++++ '[' 0 == 1 ']'
  867. +++++ for deptocheck in '"${array_deps_required[@]}"'
  868. +++++ fn_deps_detector
  869. +++++ '[' '' == 1 ']'
  870. +++++ '[' '' == 1 ']'
  871. ++++++ command -v apt-get
  872. +++++ '[' -n '' ']'
  873. ++++++ command -v yum
  874. +++++ '[' -n /bin/yum ']'
  875. +++++ yum -q list installed python
  876. +++++ depstatus=0
  877. +++++ '[' 0 == 0 ']'
  878. +++++ missingdep=0
  879. +++++ '[' command_start.sh == command_install.sh ']'
  880. +++++ '[' 0 == 1 ']'
  881. +++++ for deptocheck in '"${array_deps_required[@]}"'
  882. +++++ fn_deps_detector
  883. +++++ '[' '' == 1 ']'
  884. +++++ '[' '' == 1 ']'
  885. ++++++ command -v apt-get
  886. +++++ '[' -n '' ']'
  887. ++++++ command -v yum
  888. +++++ '[' -n /bin/yum ']'
  889. +++++ yum -q list installed file
  890. +++++ depstatus=0
  891. +++++ '[' 0 == 0 ']'
  892. +++++ missingdep=0
  893. +++++ '[' command_start.sh == command_install.sh ']'
  894. +++++ '[' 0 == 1 ']'
  895. +++++ for deptocheck in '"${array_deps_required[@]}"'
  896. +++++ fn_deps_detector
  897. +++++ '[' '' == 1 ']'
  898. +++++ '[' '' == 1 ']'
  899. ++++++ command -v apt-get
  900. +++++ '[' -n '' ']'
  901. ++++++ command -v yum
  902. +++++ '[' -n /bin/yum ']'
  903. +++++ yum -q list installed gzip
  904. +++++ depstatus=0
  905. +++++ '[' 0 == 0 ']'
  906. +++++ missingdep=0
  907. +++++ '[' command_start.sh == command_install.sh ']'
  908. +++++ '[' 0 == 1 ']'
  909. +++++ for deptocheck in '"${array_deps_required[@]}"'
  910. +++++ fn_deps_detector
  911. +++++ '[' '' == 1 ']'
  912. +++++ '[' '' == 1 ']'
  913. ++++++ command -v apt-get
  914. +++++ '[' -n '' ']'
  915. ++++++ command -v yum
  916. +++++ '[' -n /bin/yum ']'
  917. +++++ yum -q list installed bzip2
  918. +++++ depstatus=0
  919. +++++ '[' 0 == 0 ']'
  920. +++++ missingdep=0
  921. +++++ '[' command_start.sh == command_install.sh ']'
  922. +++++ '[' 0 == 1 ']'
  923. +++++ for deptocheck in '"${array_deps_required[@]}"'
  924. +++++ fn_deps_detector
  925. +++++ '[' '' == 1 ']'
  926. +++++ '[' '' == 1 ']'
  927. ++++++ command -v apt-get
  928. +++++ '[' -n '' ']'
  929. ++++++ command -v yum
  930. +++++ '[' -n /bin/yum ']'
  931. +++++ yum -q list installed glibc.i686
  932. +++++ depstatus=0
  933. +++++ '[' 0 == 0 ']'
  934. +++++ missingdep=0
  935. +++++ '[' command_start.sh == command_install.sh ']'
  936. +++++ '[' 0 == 1 ']'
  937. +++++ for deptocheck in '"${array_deps_required[@]}"'
  938. +++++ fn_deps_detector
  939. +++++ '[' '' == 1 ']'
  940. +++++ '[' '' == 1 ']'
  941. ++++++ command -v apt-get
  942. +++++ '[' -n '' ']'
  943. ++++++ command -v yum
  944. +++++ '[' -n /bin/yum ']'
  945. +++++ yum -q list installed libstdc++.i686
  946. +++++ depstatus=0
  947. +++++ '[' 0 == 0 ']'
  948. +++++ missingdep=0
  949. +++++ '[' command_start.sh == command_install.sh ']'
  950. +++++ '[' 0 == 1 ']'
  951. +++++ fn_found_missing_deps
  952. +++++ '[' 0 '!=' 0 ']'
  953. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  954. ++++ '[' command_stop.sh == command_start.sh ']'
  955. ++++ allowed_commands_array=(command_debug.sh command_details.sh command_monitor.sh command_start.sh command_stop.sh)
  956. ++++ local allowed_commands_array
  957. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  958. ++++ '[' command_debug.sh == command_start.sh ']'
  959. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  960. ++++ '[' command_details.sh == command_start.sh ']'
  961. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  962. ++++ '[' command_monitor.sh == command_start.sh ']'
  963. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  964. ++++ '[' command_start.sh == command_start.sh ']'
  965. ++++ check_ip.sh
  966. ++++ functionfile=check_ip.sh
  967. ++++ fn_fetch_function
  968. ++++ github_file_url_dir=lgsm/functions
  969. ++++ github_file_url_name=check_ip.sh
  970. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_ip.sh
  971. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_ip.sh
  972. ++++ filedir=/home/CSGOServer/lgsm/functions
  973. ++++ filename=check_ip.sh
  974. ++++ executecmd=executecmd
  975. ++++ run=run
  976. ++++ force=noforce
  977. ++++ md5=nomd5
  978. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_ip.sh /home/CSGOServer/lgsm/functions check_ip.sh executecmd run noforce nomd5
  979. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_ip.sh
  980. ++++ filedir=/home/CSGOServer/lgsm/functions
  981. ++++ filename=check_ip.sh
  982. ++++ executecmd=executecmd
  983. ++++ run=run
  984. ++++ force=noforce
  985. ++++ md5=nomd5
  986. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_ip.sh ']'
  987. ++++ '[' -f /home/CSGOServer/lgsm/functions/check_ip.sh ']'
  988. ++++ fn_dl_md5
  989. ++++ '[' nomd5 '!=' 0 ']'
  990. ++++ '[' nomd5 '!=' nomd5 ']'
  991. ++++ '[' run == run ']'
  992. ++++ source /home/CSGOServer/lgsm/functions/check_ip.sh
  993. +++++ local commandname=CHECK
  994. +++++++ readlink -f /home/CSGOServer/lgsm/functions/check_ip.sh
  995. ++++++ basename /home/CSGOServer/lgsm/functions/check_ip.sh
  996. +++++ local function_selfname=check_ip.sh
  997. +++++ '[' 'Counter-Strike: Global Offensive' '!=' 'TeamSpeak 3' ']'
  998. +++++ '[' 'Counter-Strike: Global Offensive' '!=' Mumble ']'
  999. +++++ '[' '!' -f /bin/ip ']'
  1000. +++++ ipcommand=/sbin/ip
  1001. ++++++ /sbin/ip -o -4 addr
  1002. ++++++ awk '{print $4}'
  1003. ++++++ grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'
  1004. ++++++ grep -v 127.0.0
  1005. +++++ getip=91.121.221.91
  1006. ++++++ /sbin/ip -o -4 addr
  1007. ++++++ awk '{print $4}'
  1008. ++++++ grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'
  1009. ++++++ grep -vc 127.0.0
  1010. +++++ getipwc=1
  1011. +++++ '[' 0.0.0.0 == 0.0.0.0 ']'
  1012. +++++ '[' 1 -ge 2 ']'
  1013. +++++ ip=91.121.221.91
  1014. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1015. ++++ '[' command_stop.sh == command_start.sh ']'
  1016. ++++ allowed_commands_array=(update_steamcmd.sh command_debug.sh command_start.sh command_validate.sh)
  1017. ++++ local allowed_commands_array
  1018. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1019. ++++ '[' update_steamcmd.sh == command_start.sh ']'
  1020. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1021. ++++ '[' command_debug.sh == command_start.sh ']'
  1022. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1023. ++++ '[' command_start.sh == command_start.sh ']'
  1024. ++++ '[' -n 740 ']'
  1025. ++++ check_steamcmd.sh
  1026. ++++ functionfile=check_steamcmd.sh
  1027. ++++ fn_fetch_function
  1028. ++++ github_file_url_dir=lgsm/functions
  1029. ++++ github_file_url_name=check_steamcmd.sh
  1030. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_steamcmd.sh
  1031. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_steamcmd.sh
  1032. ++++ filedir=/home/CSGOServer/lgsm/functions
  1033. ++++ filename=check_steamcmd.sh
  1034. ++++ executecmd=executecmd
  1035. ++++ run=run
  1036. ++++ force=noforce
  1037. ++++ md5=nomd5
  1038. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_steamcmd.sh /home/CSGOServer/lgsm/functions check_steamcmd.sh executecmd run noforce nomd5
  1039. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_steamcmd.sh
  1040. ++++ filedir=/home/CSGOServer/lgsm/functions
  1041. ++++ filename=check_steamcmd.sh
  1042. ++++ executecmd=executecmd
  1043. ++++ run=run
  1044. ++++ force=noforce
  1045. ++++ md5=nomd5
  1046. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_steamcmd.sh ']'
  1047. ++++ '[' -f /home/CSGOServer/lgsm/functions/check_steamcmd.sh ']'
  1048. ++++ fn_dl_md5
  1049. ++++ '[' nomd5 '!=' 0 ']'
  1050. ++++ '[' nomd5 '!=' nomd5 ']'
  1051. ++++ '[' run == run ']'
  1052. ++++ source /home/CSGOServer/lgsm/functions/check_steamcmd.sh
  1053. +++++ local commandname=CHECK
  1054. +++++ fn_check_steamcmd_user
  1055. +++++ '[' anonymous == username ']'
  1056. +++++ '[' -z anonymous ']'
  1057. +++++ fn_check_steamcmd_sh
  1058. +++++ steamcmddir=/home/CSGOServer/steamcmd
  1059. +++++ '[' '!' -f /home/CSGOServer/steamcmd/steamcmd.sh ']'
  1060. +++++ '[' command_start.sh == command_install.sh ']'
  1061. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1062. ++++ '[' command_validate.sh == command_start.sh ']'
  1063. ++++ allowed_commands_array=(command_console.sh command_debug.sh command_details.sh command_monitor.sh command_start.sh command_stop.sh)
  1064. ++++ local allowed_commands_array
  1065. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1066. ++++ '[' command_console.sh == command_start.sh ']'
  1067. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1068. ++++ '[' command_debug.sh == command_start.sh ']'
  1069. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1070. ++++ '[' command_details.sh == command_start.sh ']'
  1071. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1072. ++++ '[' command_monitor.sh == command_start.sh ']'
  1073. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1074. ++++ '[' command_start.sh == command_start.sh ']'
  1075. ++++ check_config.sh
  1076. ++++ functionfile=check_config.sh
  1077. ++++ fn_fetch_function
  1078. ++++ github_file_url_dir=lgsm/functions
  1079. ++++ github_file_url_name=check_config.sh
  1080. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_config.sh
  1081. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_config.sh
  1082. ++++ filedir=/home/CSGOServer/lgsm/functions
  1083. ++++ filename=check_config.sh
  1084. ++++ executecmd=executecmd
  1085. ++++ run=run
  1086. ++++ force=noforce
  1087. ++++ md5=nomd5
  1088. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_config.sh /home/CSGOServer/lgsm/functions check_config.sh executecmd run noforce nomd5
  1089. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_config.sh
  1090. ++++ filedir=/home/CSGOServer/lgsm/functions
  1091. ++++ filename=check_config.sh
  1092. ++++ executecmd=executecmd
  1093. ++++ run=run
  1094. ++++ force=noforce
  1095. ++++ md5=nomd5
  1096. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_config.sh ']'
  1097. ++++ '[' -f /home/CSGOServer/lgsm/functions/check_config.sh ']'
  1098. ++++ fn_dl_md5
  1099. ++++ '[' nomd5 '!=' 0 ']'
  1100. ++++ '[' nomd5 '!=' nomd5 ']'
  1101. ++++ '[' run == run ']'
  1102. ++++ source /home/CSGOServer/lgsm/functions/check_config.sh
  1103. +++++ local commandname=CHECK
  1104. +++++++ readlink -f /home/CSGOServer/lgsm/functions/check_config.sh
  1105. ++++++ basename /home/CSGOServer/lgsm/functions/check_config.sh
  1106. +++++ local function_selfname=check_config.sh
  1107. +++++ '[' '!' -e /home/CSGOServer/serverfiles/csgo/cfg/csgo-server.cfg ']'
  1108. +++++ '[' 'Counter-Strike: Global Offensive' == Rust ']'
  1109. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1110. ++++ '[' command_stop.sh == command_start.sh ']'
  1111. ++++ allowed_commands_array=(command_details.sh command_monitor.sh command_start.sh command_stop.sh command_ts3_server_pass.sh command_update.sh command_details.sh command_validate.sh)
  1112. ++++ local allowed_commands_array
  1113. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1114. ++++ '[' command_details.sh == command_start.sh ']'
  1115. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1116. ++++ '[' command_monitor.sh == command_start.sh ']'
  1117. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1118. ++++ '[' command_start.sh == command_start.sh ']'
  1119. ++++ check_status.sh
  1120. ++++ functionfile=check_status.sh
  1121. ++++ fn_fetch_function
  1122. ++++ github_file_url_dir=lgsm/functions
  1123. ++++ github_file_url_name=check_status.sh
  1124. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh
  1125. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh
  1126. ++++ filedir=/home/CSGOServer/lgsm/functions
  1127. ++++ filename=check_status.sh
  1128. ++++ executecmd=executecmd
  1129. ++++ run=run
  1130. ++++ force=noforce
  1131. ++++ md5=nomd5
  1132. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh /home/CSGOServer/lgsm/functions check_status.sh executecmd run noforce nomd5
  1133. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh
  1134. ++++ filedir=/home/CSGOServer/lgsm/functions
  1135. ++++ filename=check_status.sh
  1136. ++++ executecmd=executecmd
  1137. ++++ run=run
  1138. ++++ force=noforce
  1139. ++++ md5=nomd5
  1140. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_status.sh ']'
  1141. ++++ '[' -f /home/CSGOServer/lgsm/functions/check_status.sh ']'
  1142. ++++ fn_dl_md5
  1143. ++++ '[' nomd5 '!=' 0 ']'
  1144. ++++ '[' nomd5 '!=' nomd5 ']'
  1145. ++++ '[' run == run ']'
  1146. ++++ source /home/CSGOServer/lgsm/functions/check_status.sh
  1147. +++++ local commandname=CHECK
  1148. +++++++ readlink -f /home/CSGOServer/lgsm/functions/check_status.sh
  1149. ++++++ basename /home/CSGOServer/lgsm/functions/check_status.sh
  1150. +++++ local function_selfname=check_status.sh
  1151. +++++ '[' 'Counter-Strike: Global Offensive' == 'TeamSpeak 3' ']'
  1152. +++++ '[' 'Counter-Strike: Global Offensive' == Mumble ']'
  1153. ++++++ tmux list-sessions
  1154. ++++++ awk '{print $1}'
  1155. ++++++ grep -Ec '^csgo-server:'
  1156. +++++ status=0
  1157. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1158. ++++ '[' command_stop.sh == command_start.sh ']'
  1159. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1160. ++++ '[' command_ts3_server_pass.sh == command_start.sh ']'
  1161. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1162. ++++ '[' command_update.sh == command_start.sh ']'
  1163. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1164. ++++ '[' command_details.sh == command_start.sh ']'
  1165. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1166. ++++ '[' command_validate.sh == command_start.sh ']'
  1167. ++++ allowed_commands_array=(command_debug.sh command_start.sh command_install.sh)
  1168. ++++ local allowed_commands_array
  1169. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1170. ++++ '[' command_debug.sh == command_start.sh ']'
  1171. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1172. ++++ '[' command_start.sh == command_start.sh ']'
  1173. ++++ check_system_requirements.sh
  1174. ++++ functionfile=check_system_requirements.sh
  1175. ++++ fn_fetch_function
  1176. ++++ github_file_url_dir=lgsm/functions
  1177. ++++ github_file_url_name=check_system_requirements.sh
  1178. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_system_requirements.sh
  1179. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_system_requirements.sh
  1180. ++++ filedir=/home/CSGOServer/lgsm/functions
  1181. ++++ filename=check_system_requirements.sh
  1182. ++++ executecmd=executecmd
  1183. ++++ run=run
  1184. ++++ force=noforce
  1185. ++++ md5=nomd5
  1186. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_system_requirements.sh /home/CSGOServer/lgsm/functions check_system_requirements.sh executecmd run noforce nomd5
  1187. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_system_requirements.sh
  1188. ++++ filedir=/home/CSGOServer/lgsm/functions
  1189. ++++ filename=check_system_requirements.sh
  1190. ++++ executecmd=executecmd
  1191. ++++ run=run
  1192. ++++ force=noforce
  1193. ++++ md5=nomd5
  1194. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_system_requirements.sh ']'
  1195. ++++ '[' -f /home/CSGOServer/lgsm/functions/check_system_requirements.sh ']'
  1196. ++++ fn_dl_md5
  1197. ++++ '[' nomd5 '!=' 0 ']'
  1198. ++++ '[' nomd5 '!=' nomd5 ']'
  1199. ++++ '[' run == run ']'
  1200. ++++ source /home/CSGOServer/lgsm/functions/check_system_requirements.sh
  1201. +++++ local commandname=CHECK
  1202. +++++++ readlink -f /home/CSGOServer/lgsm/functions/check_system_requirements.sh
  1203. ++++++ basename /home/CSGOServer/lgsm/functions/check_system_requirements.sh
  1204. +++++ local function_selfname=check_system_requirements.sh
  1205. +++++ info_distro.sh
  1206. +++++ functionfile=info_distro.sh
  1207. +++++ fn_fetch_function
  1208. +++++ github_file_url_dir=lgsm/functions
  1209. +++++ github_file_url_name=info_distro.sh
  1210. +++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_distro.sh
  1211. +++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_distro.sh
  1212. +++++ filedir=/home/CSGOServer/lgsm/functions
  1213. +++++ filename=info_distro.sh
  1214. +++++ executecmd=executecmd
  1215. +++++ run=run
  1216. +++++ force=noforce
  1217. +++++ md5=nomd5
  1218. +++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_distro.sh /home/CSGOServer/lgsm/functions info_distro.sh executecmd run noforce nomd5
  1219. +++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_distro.sh
  1220. +++++ filedir=/home/CSGOServer/lgsm/functions
  1221. +++++ filename=info_distro.sh
  1222. +++++ executecmd=executecmd
  1223. +++++ run=run
  1224. +++++ force=noforce
  1225. +++++ md5=nomd5
  1226. +++++ '[' '!' -f /home/CSGOServer/lgsm/functions/info_distro.sh ']'
  1227. +++++ '[' -f /home/CSGOServer/lgsm/functions/info_distro.sh ']'
  1228. +++++ fn_dl_md5
  1229. +++++ '[' nomd5 '!=' 0 ']'
  1230. +++++ '[' nomd5 '!=' nomd5 ']'
  1231. +++++ '[' run == run ']'
  1232. +++++ source /home/CSGOServer/lgsm/functions/info_distro.sh
  1233. ++++++++ readlink -f /home/CSGOServer/lgsm/functions/info_distro.sh
  1234. +++++++ basename /home/CSGOServer/lgsm/functions/info_distro.sh
  1235. ++++++ local function_selfname=info_distro.sh
  1236. +++++++ uname -m
  1237. ++++++ arch=x86_64
  1238. +++++++ uname -r
  1239. ++++++ kernel=3.10.0-327.22.2.el7.x86_64
  1240. +++++++ command -v lsb_release
  1241. ++++++ '[' -n '' ']'
  1242. ++++++ '[' -f /etc/os-release ']'
  1243. +++++++ grep PRETTY_NAME /etc/os-release
  1244. +++++++ sed s/PRETTY_NAME=//g
  1245. +++++++ tr -d '="'
  1246. ++++++ distroname='CentOS Linux 7 (Core)'
  1247. ++++++ '[' -f /etc/os-release ']'
  1248. +++++++ grep VERSION_ID /etc/os-release
  1249. +++++++ tr -cd '[:digit:]'
  1250. ++++++ distroversion=7
  1251. +++++++ ldd --version
  1252. +++++++ sed -n '1s/.* //p'
  1253. ++++++ glibcversion=2.17
  1254. +++++++ command -v tmux
  1255. ++++++ '[' -z /usr/local/bin/tmux ']'
  1256. +++++++ tmux -V
  1257. +++++++ sed 's/tmux //'
  1258. +++++++ sed -n '1 p'
  1259. +++++++ tr -cd '[:digit:]'
  1260. ++++++ '[' 23 -lt 16 ']'
  1261. +++++++ tmux -V
  1262. ++++++ tmuxv='tmux 2.3'
  1263. ++++++ uptime='2595721.26 10296052.48'
  1264. ++++++ uptime=2595721
  1265. ++++++ minutes=2
  1266. ++++++ hours=1
  1267. ++++++ days=30
  1268. +++++++ uptime
  1269. +++++++ awk -F 'load average: ' '{ print $2 }'
  1270. ++++++ load='1.09, 0.49, 0.21'
  1271. +++++++ free -h
  1272. +++++++ echo 0
  1273. ++++++ '[' 0 -ne 0 ']'
  1274. ++++++ humanreadable=-h
  1275. +++++++ free -h
  1276. +++++++ awk '/Mem:/ {print $2}'
  1277. ++++++ physmemtotal=15G
  1278. +++++++ free -m
  1279. +++++++ awk '/Mem:/ {print $2}'
  1280. ++++++ physmemtotalmb=16039
  1281. +++++++ free -h
  1282. +++++++ awk '/Mem:/ {print $3}'
  1283. ++++++ physmemused=548M
  1284. +++++++ free -h
  1285. +++++++ awk '/Mem:/ {print $4}'
  1286. ++++++ physmemfree=533M
  1287. +++++++ free -h
  1288. +++++++ awk '/cache:/ {print $4}'
  1289. ++++++ physmemcached=
  1290. +++++++ free -h
  1291. +++++++ awk '/Swap:/ {print $2}'
  1292. ++++++ swaptotal=2.5G
  1293. +++++++ free -h
  1294. +++++++ awk '/Swap:/ {print $3}'
  1295. ++++++ swapused=0B
  1296. +++++++ free -h
  1297. +++++++ awk '/Swap:/ {print $4}'
  1298. ++++++ swapfree=2.5G
  1299. +++++++ df -hP /home/CSGOServer
  1300. +++++++ grep -v Filesystem
  1301. +++++++ awk '{print $1}'
  1302. ++++++ filesystem=/dev/sda3
  1303. +++++++ df -hP /home/CSGOServer
  1304. +++++++ grep -v Filesystem
  1305. +++++++ awk '{print $2}'
  1306. ++++++ totalspace=1.8T
  1307. +++++++ df -hP /home/CSGOServer
  1308. +++++++ grep -v Filesystem
  1309. +++++++ awk '{print $3}'
  1310. ++++++ usedspace=192G
  1311. +++++++ df -hP /home/CSGOServer
  1312. +++++++ grep -v Filesystem
  1313. +++++++ awk '{print $4}'
  1314. ++++++ availspace=1.5T
  1315. +++++++ du -sh /home/CSGOServer
  1316. +++++++ awk '{print $1}'
  1317. ++++++ rootdirdu=15G
  1318. ++++++ '[' -z 15G ']'
  1319. +++++++ du -sh /home/CSGOServer/serverfiles
  1320. +++++++ awk '{print $1}'
  1321. ++++++ filesdirdu=15G
  1322. ++++++ '[' -z 15G ']'
  1323. +++++++ du -sh --exclude=/home/CSGOServer/backups /home/CSGOServer/serverfiles
  1324. +++++++ awk '{print $1}'
  1325. ++++++ rootdirduexbackup=15G
  1326. ++++++ '[' -z 15G ']'
  1327. ++++++ '[' -d /home/CSGOServer/backups ']'
  1328. +++++ '[' 'Counter-Strike: Global Offensive' == Rust ']'
  1329. +++++ '[' 'Counter-Strike: Global Offensive' == 'ARMA 3' ']'
  1330. +++++ '[' 'Counter-Strike: Global Offensive' == Minecraft ']'
  1331. +++++ '[' -n '' ']'
  1332. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  1333. ++++ '[' command_install.sh == command_start.sh ']'
  1334. +++ fix.sh
  1335. +++ functionfile=fix.sh
  1336. +++ fn_fetch_function
  1337. +++ github_file_url_dir=lgsm/functions
  1338. +++ github_file_url_name=fix.sh
  1339. +++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/fix.sh
  1340. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/fix.sh
  1341. +++ filedir=/home/CSGOServer/lgsm/functions
  1342. +++ filename=fix.sh
  1343. +++ executecmd=executecmd
  1344. +++ run=run
  1345. +++ force=noforce
  1346. +++ md5=nomd5
  1347. +++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/fix.sh /home/CSGOServer/lgsm/functions fix.sh executecmd run noforce nomd5
  1348. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/fix.sh
  1349. +++ filedir=/home/CSGOServer/lgsm/functions
  1350. +++ filename=fix.sh
  1351. +++ executecmd=executecmd
  1352. +++ run=run
  1353. +++ force=noforce
  1354. +++ md5=nomd5
  1355. +++ '[' '!' -f /home/CSGOServer/lgsm/functions/fix.sh ']'
  1356. +++ '[' -f /home/CSGOServer/lgsm/functions/fix.sh ']'
  1357. +++ fn_dl_md5
  1358. +++ '[' nomd5 '!=' 0 ']'
  1359. +++ '[' nomd5 '!=' nomd5 ']'
  1360. +++ '[' run == run ']'
  1361. +++ source /home/CSGOServer/lgsm/functions/fix.sh
  1362. ++++ local commandname=FIX
  1363. ++++ local commandaction=Fix
  1364. ++++ '[' command_start.sh '!=' command_install.sh ']'
  1365. ++++ '[' -n 740 ']'
  1366. ++++ fix_steamcmd.sh
  1367. ++++ functionfile=fix_steamcmd.sh
  1368. ++++ fn_fetch_function
  1369. ++++ github_file_url_dir=lgsm/functions
  1370. ++++ github_file_url_name=fix_steamcmd.sh
  1371. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/fix_steamcmd.sh
  1372. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/fix_steamcmd.sh
  1373. ++++ filedir=/home/CSGOServer/lgsm/functions
  1374. ++++ filename=fix_steamcmd.sh
  1375. ++++ executecmd=executecmd
  1376. ++++ run=run
  1377. ++++ force=noforce
  1378. ++++ md5=nomd5
  1379. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/fix_steamcmd.sh /home/CSGOServer/lgsm/functions fix_steamcmd.sh executecmd run noforce nomd5
  1380. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/fix_steamcmd.sh
  1381. ++++ filedir=/home/CSGOServer/lgsm/functions
  1382. ++++ filename=fix_steamcmd.sh
  1383. ++++ executecmd=executecmd
  1384. ++++ run=run
  1385. ++++ force=noforce
  1386. ++++ md5=nomd5
  1387. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/fix_steamcmd.sh ']'
  1388. ++++ '[' -f /home/CSGOServer/lgsm/functions/fix_steamcmd.sh ']'
  1389. ++++ fn_dl_md5
  1390. ++++ '[' nomd5 '!=' 0 ']'
  1391. ++++ '[' nomd5 '!=' nomd5 ']'
  1392. ++++ '[' run == run ']'
  1393. ++++ source /home/CSGOServer/lgsm/functions/fix_steamcmd.sh
  1394. +++++ local commandname=FIX
  1395. +++++ local commandaction=Fix
  1396. +++++++ readlink -f /home/CSGOServer/lgsm/functions/fix_steamcmd.sh
  1397. ++++++ basename /home/CSGOServer/lgsm/functions/fix_steamcmd.sh
  1398. +++++ local function_selfname=fix_steamcmd.sh
  1399. +++++ '[' '!' -f /home/CSGOServer/.steam/sdk32/steamclient.so ']'
  1400. +++++ '[' 'Counter-Strike: Global Offensive' == 'Serious Sam 3: BFE' ']'
  1401. +++++ '[' 'Counter-Strike: Global Offensive' == Hurtworld ']'
  1402. ++++ '[' 'Counter-Strike: Global Offensive' == 'ARMA 3' ']'
  1403. ++++ '[' 'Counter-Strike: Global Offensive' == 'Counter-Strike: Global Offensive' ']'
  1404. ++++ fix_csgo.sh
  1405. ++++ functionfile=fix_csgo.sh
  1406. ++++ fn_fetch_function
  1407. ++++ github_file_url_dir=lgsm/functions
  1408. ++++ github_file_url_name=fix_csgo.sh
  1409. ++++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/fix_csgo.sh
  1410. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/fix_csgo.sh
  1411. ++++ filedir=/home/CSGOServer/lgsm/functions
  1412. ++++ filename=fix_csgo.sh
  1413. ++++ executecmd=executecmd
  1414. ++++ run=run
  1415. ++++ force=noforce
  1416. ++++ md5=nomd5
  1417. ++++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/fix_csgo.sh /home/CSGOServer/lgsm/functions fix_csgo.sh executecmd run noforce nomd5
  1418. ++++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/fix_csgo.sh
  1419. ++++ filedir=/home/CSGOServer/lgsm/functions
  1420. ++++ filename=fix_csgo.sh
  1421. ++++ executecmd=executecmd
  1422. ++++ run=run
  1423. ++++ force=noforce
  1424. ++++ md5=nomd5
  1425. ++++ '[' '!' -f /home/CSGOServer/lgsm/functions/fix_csgo.sh ']'
  1426. ++++ '[' -f /home/CSGOServer/lgsm/functions/fix_csgo.sh ']'
  1427. ++++ fn_dl_md5
  1428. ++++ '[' nomd5 '!=' 0 ']'
  1429. ++++ '[' nomd5 '!=' nomd5 ']'
  1430. ++++ '[' run == run ']'
  1431. ++++ source /home/CSGOServer/lgsm/functions/fix_csgo.sh
  1432. +++++ local commandname=FIX
  1433. +++++ local commandaction=Fix
  1434. +++++++ readlink -f /home/CSGOServer/lgsm/functions/fix_csgo.sh
  1435. ++++++ basename /home/CSGOServer/lgsm/functions/fix_csgo.sh
  1436. +++++ local function_selfname=fix_csgo.sh
  1437. +++++ '[' '!' -f /home/CSGOServer/serverfiles/steam_appid.txt ']'
  1438. +++++ grep -q //Rank /home/CSGOServer/serverfiles/csgo/botprofile.db
  1439. +++++ grep -q '//exec default' /home/CSGOServer/serverfiles/csgo/cfg/valve.rc
  1440. +++++ grep -q '//exec joystick' /home/CSGOServer/serverfiles/csgo/cfg/valve.rc
  1441. +++++ '[' -f /home/CSGOServer/serverfiles/csgo/subscribed_collection_ids.txt ']'
  1442. +++++ '[' -f /home/CSGOServer/serverfiles/csgo/subscribed_file_ids.txt ']'
  1443. +++++ '[' -f /home/CSGOServer/serverfiles/csgo/ugc_collection_cache.txt ']'
  1444. ++++ '[' command_start.sh == command_install.sh ']'
  1445. +++ info_config.sh
  1446. +++ functionfile=info_config.sh
  1447. +++ fn_fetch_function
  1448. +++ github_file_url_dir=lgsm/functions
  1449. +++ github_file_url_name=info_config.sh
  1450. +++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_config.sh
  1451. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_config.sh
  1452. +++ filedir=/home/CSGOServer/lgsm/functions
  1453. +++ filename=info_config.sh
  1454. +++ executecmd=executecmd
  1455. +++ run=run
  1456. +++ force=noforce
  1457. +++ md5=nomd5
  1458. +++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_config.sh /home/CSGOServer/lgsm/functions info_config.sh executecmd run noforce nomd5
  1459. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/info_config.sh
  1460. +++ filedir=/home/CSGOServer/lgsm/functions
  1461. +++ filename=info_config.sh
  1462. +++ executecmd=executecmd
  1463. +++ run=run
  1464. +++ force=noforce
  1465. +++ md5=nomd5
  1466. +++ '[' '!' -f /home/CSGOServer/lgsm/functions/info_config.sh ']'
  1467. +++ '[' -f /home/CSGOServer/lgsm/functions/info_config.sh ']'
  1468. +++ fn_dl_md5
  1469. +++ '[' nomd5 '!=' 0 ']'
  1470. +++ '[' nomd5 '!=' nomd5 ']'
  1471. +++ '[' run == run ']'
  1472. +++ source /home/CSGOServer/lgsm/functions/info_config.sh
  1473. ++++++ readlink -f /home/CSGOServer/lgsm/functions/info_config.sh
  1474. +++++ basename /home/CSGOServer/lgsm/functions/info_config.sh
  1475. ++++ local function_selfname=info_config.sh
  1476. ++++ unavailable='\e[31mUNAVAILABLE\e[0m'
  1477. ++++ zero='\e[31m0\e[0m'
  1478. ++++ '[' source == avalanche ']'
  1479. ++++ '[' source == dontstarve ']'
  1480. ++++ '[' source == idtech3 ']'
  1481. ++++ '[' source == lwjgl2 ']'
  1482. ++++ '[' source == projectzomboid ']'
  1483. ++++ '[' source == realvirtuality ']'
  1484. ++++ '[' source == seriousengine35 ']'
  1485. ++++ '[' source == source ']'
  1486. ++++ fn_info_config_source
  1487. ++++ '[' '!' -f /home/CSGOServer/serverfiles/csgo/cfg/csgo-server.cfg ']'
  1488. +++++ grep hostname /home/CSGOServer/serverfiles/csgo/cfg/csgo-server.cfg
  1489. +++++ sed 's/hostname //g'
  1490. +++++ sed 's/"//g'
  1491. +++++ cut -f1 -d /
  1492. ++++ servername='Madd Congregation'
  1493. +++++ grep sv_password /home/CSGOServer/serverfiles/csgo/cfg/csgo-server.cfg
  1494. +++++ sed 's/sv_password //g'
  1495. +++++ sed 's/"//g'
  1496. +++++ cut -f1 -d /
  1497. ++++ serverpassword=
  1498. +++++ grep rcon_password /home/CSGOServer/serverfiles/csgo/cfg/csgo-server.cfg
  1499. +++++ sed 's/rcon_password //g'
  1500. +++++ sed 's/"//g'
  1501. +++++ cut -f1 -d /
  1502. ++++ rconpassword=Donut
  1503. ++++ servername='Madd Congregation'
  1504. ++++ serverpassword='NOT SET'
  1505. ++++ rconpassword=Donut
  1506. +++ logs.sh
  1507. +++ functionfile=logs.sh
  1508. +++ fn_fetch_function
  1509. +++ github_file_url_dir=lgsm/functions
  1510. +++ github_file_url_name=logs.sh
  1511. +++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/logs.sh
  1512. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/logs.sh
  1513. +++ filedir=/home/CSGOServer/lgsm/functions
  1514. +++ filename=logs.sh
  1515. +++ executecmd=executecmd
  1516. +++ run=run
  1517. +++ force=noforce
  1518. +++ md5=nomd5
  1519. +++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/logs.sh /home/CSGOServer/lgsm/functions logs.sh executecmd run noforce nomd5
  1520. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/logs.sh
  1521. +++ filedir=/home/CSGOServer/lgsm/functions
  1522. +++ filename=logs.sh
  1523. +++ executecmd=executecmd
  1524. +++ run=run
  1525. +++ force=noforce
  1526. +++ md5=nomd5
  1527. +++ '[' '!' -f /home/CSGOServer/lgsm/functions/logs.sh ']'
  1528. +++ '[' -f /home/CSGOServer/lgsm/functions/logs.sh ']'
  1529. +++ fn_dl_md5
  1530. +++ '[' nomd5 '!=' 0 ']'
  1531. +++ '[' nomd5 '!=' nomd5 ']'
  1532. +++ '[' run == run ']'
  1533. +++ source /home/CSGOServer/lgsm/functions/logs.sh
  1534. ++++ local commandname=LOGS
  1535. ++++ local commandaction=Log-Manager
  1536. ++++ '[' -n /home/CSGOServer/log/console/csgo-server-console.log ']'
  1537. ++++ '[' '!' -e /home/CSGOServer/log/console/csgo-server-console.log ']'
  1538. ++++ '[' command_start.sh == command_start.sh ']'
  1539. ++++ '[' -n '' ']'
  1540. +++++ find /home/CSGOServer/log/script/ -type f -mtime +7
  1541. +++++ wc -l
  1542. ++++ '[' 0 -ne 0 ']'
  1543. +++ '[' 0 == 0 ']'
  1544. +++ '[' off == yes ']'
  1545. +++ '[' off == 1 ']'
  1546. +++ '[' off == on ']'
  1547. +++ '[' 'Counter-Strike: Global Offensive' == 'TeamSpeak 3' ']'
  1548. +++ fn_start_tmux
  1549. +++ fn_parms
  1550. +++ parms='-game csgo -usercon -strictportbind -ip 91.121.221.91 -port 27015 +clientport 27005 +tv_port 27020 +sv_setsteamaccount FA9A45A352B1D7FFC651D11BAF0C4C87 -tickrate 64 +map de_dust2 +servercfgfile csgo-server.cfg -maxplayers_override 16 +mapgroup random_classic +game_mode 0 +game_type 0 +host_workshop_collection +workshop_start_map -authkey '
  1551. +++ check_status.sh
  1552. +++ functionfile=check_status.sh
  1553. +++ fn_fetch_function
  1554. +++ github_file_url_dir=lgsm/functions
  1555. +++ github_file_url_name=check_status.sh
  1556. +++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh
  1557. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh
  1558. +++ filedir=/home/CSGOServer/lgsm/functions
  1559. +++ filename=check_status.sh
  1560. +++ executecmd=executecmd
  1561. +++ run=run
  1562. +++ force=noforce
  1563. +++ md5=nomd5
  1564. +++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh /home/CSGOServer/lgsm/functions check_status.sh executecmd run noforce nomd5
  1565. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh
  1566. +++ filedir=/home/CSGOServer/lgsm/functions
  1567. +++ filename=check_status.sh
  1568. +++ executecmd=executecmd
  1569. +++ run=run
  1570. +++ force=noforce
  1571. +++ md5=nomd5
  1572. +++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_status.sh ']'
  1573. +++ '[' -f /home/CSGOServer/lgsm/functions/check_status.sh ']'
  1574. +++ fn_dl_md5
  1575. +++ '[' nomd5 '!=' 0 ']'
  1576. +++ '[' nomd5 '!=' nomd5 ']'
  1577. +++ '[' run == run ']'
  1578. +++ source /home/CSGOServer/lgsm/functions/check_status.sh
  1579. ++++ local commandname=CHECK
  1580. ++++++ readlink -f /home/CSGOServer/lgsm/functions/check_status.sh
  1581. +++++ basename /home/CSGOServer/lgsm/functions/check_status.sh
  1582. ++++ local function_selfname=check_status.sh
  1583. ++++ '[' 'Counter-Strike: Global Offensive' == 'TeamSpeak 3' ']'
  1584. ++++ '[' 'Counter-Strike: Global Offensive' == Mumble ']'
  1585. +++++ tmux list-sessions
  1586. +++++ awk '{print $1}'
  1587. +++++ grep -Ec '^csgo-server:'
  1588. ++++ status=0
  1589. +++ '[' 0 == 0 ']'
  1590. +++ fn_script_log_info 'Rotating log files'
  1591. +++ '[' -d /home/CSGOServer/log/script ']'
  1592. +++ '[' -n START ']'
  1593. ++++ date '+%b %d %H:%M:%S'
  1594. +++ echo -e 'Sep 23 20:26:34 csgo-server: START: INFO: Rotating log files'
  1595. +++ '[' source == unreal2 ']'
  1596. +++ mv /home/CSGOServer/log/script/csgo-server-script.log /home/CSGOServer/log/script/csgo-server-script-23-09-2016-20-26-31.log
  1597. +++ mv /home/CSGOServer/log/console/csgo-server-console.log /home/CSGOServer/log/console/csgo-server-console-23-09-2016-20-26-31.log
  1598. +++ check_status.sh
  1599. +++ functionfile=check_status.sh
  1600. +++ fn_fetch_function
  1601. +++ github_file_url_dir=lgsm/functions
  1602. +++ github_file_url_name=check_status.sh
  1603. +++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh
  1604. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh
  1605. +++ filedir=/home/CSGOServer/lgsm/functions
  1606. +++ filename=check_status.sh
  1607. +++ executecmd=executecmd
  1608. +++ run=run
  1609. +++ force=noforce
  1610. +++ md5=nomd5
  1611. +++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh /home/CSGOServer/lgsm/functions check_status.sh executecmd run noforce nomd5
  1612. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh
  1613. +++ filedir=/home/CSGOServer/lgsm/functions
  1614. +++ filename=check_status.sh
  1615. +++ executecmd=executecmd
  1616. +++ run=run
  1617. +++ force=noforce
  1618. +++ md5=nomd5
  1619. +++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_status.sh ']'
  1620. +++ '[' -f /home/CSGOServer/lgsm/functions/check_status.sh ']'
  1621. +++ fn_dl_md5
  1622. +++ '[' nomd5 '!=' 0 ']'
  1623. +++ '[' nomd5 '!=' nomd5 ']'
  1624. +++ '[' run == run ']'
  1625. +++ source /home/CSGOServer/lgsm/functions/check_status.sh
  1626. ++++ local commandname=CHECK
  1627. ++++++ readlink -f /home/CSGOServer/lgsm/functions/check_status.sh
  1628. +++++ basename /home/CSGOServer/lgsm/functions/check_status.sh
  1629. ++++ local function_selfname=check_status.sh
  1630. ++++ '[' 'Counter-Strike: Global Offensive' == 'TeamSpeak 3' ']'
  1631. ++++ '[' 'Counter-Strike: Global Offensive' == Mumble ']'
  1632. +++++ tmux list-sessions
  1633. +++++ awk '{print $1}'
  1634. +++++ grep -Ec '^csgo-server:'
  1635. ++++ status=0
  1636. +++ '[' 0 '!=' 0 ']'
  1637. +++ date
  1638. +++ cd /home/CSGOServer/serverfiles
  1639. +++ tmux new-session -d -s csgo-server './srcds_run -game csgo -usercon -strictportbind -ip 91.121.221.91 -port 27015 +clientport 27005 +tv_port 27020 +sv_setsteamaccount FA9A45A352B1D7FFC651D11BAF0C4C87 -tickrate 64 +map de_dust2 +servercfgfile csgo-server.cfg -maxplayers_override 16 +mapgroup random_classic +game_mode 0 +game_type 0 +host_workshop_collection +workshop_start_map -authkey '
  1640. ++++ tmux -V
  1641. ++++ sed 's/tmux //'
  1642. ++++ sed -n '1 p'
  1643. ++++ tr -cd '[:digit:]'
  1644. +++ '[' 23 -lt 16 ']'
  1645. ++++ tmux -V
  1646. ++++ sed 's/tmux //'
  1647. ++++ sed -n '1 p'
  1648. ++++ tr -cd '[:digit:]'
  1649. +++ '[' 23 -eq 18 ']'
  1650. +++ '[' on == on ']'
  1651. +++ touch /home/CSGOServer/log/console/csgo-server-console.log
  1652. +++ tmux pipe-pane -o -t csgo-server 'exec cat >> '\''/home/CSGOServer/log/console/csgo-server-console.log'\'''
  1653. +++ sleep 1
  1654. +++ check_status.sh
  1655. +++ functionfile=check_status.sh
  1656. +++ fn_fetch_function
  1657. +++ github_file_url_dir=lgsm/functions
  1658. +++ github_file_url_name=check_status.sh
  1659. +++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh
  1660. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh
  1661. +++ filedir=/home/CSGOServer/lgsm/functions
  1662. +++ filename=check_status.sh
  1663. +++ executecmd=executecmd
  1664. +++ run=run
  1665. +++ force=noforce
  1666. +++ md5=nomd5
  1667. +++ fn_fetch_file https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh /home/CSGOServer/lgsm/functions check_status.sh executecmd run noforce nomd5
  1668. +++ fileurl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/check_status.sh
  1669. +++ filedir=/home/CSGOServer/lgsm/functions
  1670. +++ filename=check_status.sh
  1671. +++ executecmd=executecmd
  1672. +++ run=run
  1673. +++ force=noforce
  1674. +++ md5=nomd5
  1675. +++ '[' '!' -f /home/CSGOServer/lgsm/functions/check_status.sh ']'
  1676. +++ '[' -f /home/CSGOServer/lgsm/functions/check_status.sh ']'
  1677. +++ fn_dl_md5
  1678. +++ '[' nomd5 '!=' 0 ']'
  1679. +++ '[' nomd5 '!=' nomd5 ']'
  1680. +++ '[' run == run ']'
  1681. +++ source /home/CSGOServer/lgsm/functions/check_status.sh
  1682. ++++ local commandname=CHECK
  1683. ++++++ readlink -f /home/CSGOServer/lgsm/functions/check_status.sh
  1684. +++++ basename /home/CSGOServer/lgsm/functions/check_status.sh
  1685. ++++ local function_selfname=check_status.sh
  1686. ++++ '[' 'Counter-Strike: Global Offensive' == 'TeamSpeak 3' ']'
  1687. ++++ '[' 'Counter-Strike: Global Offensive' == Mumble ']'
  1688. +++++ tmux list-sessions
  1689. +++++ awk '{print $1}'
  1690. +++++ grep -Ec '^csgo-server:'
  1691. ++++ status=1
  1692. +++ '[' 1 == 0 ']'
  1693. +++ fn_print_ok 'Madd Congregation'
  1694. +++ '[' -n Starting ']'
  1695. +++ echo -en '\r\033[K[\e[32m OK \e[0m] Starting csgo-server: Madd Congregation'
  1696. +++ fn_script_log_pass 'Started Madd Congregation'
  1697. +++ '[' -d /home/CSGOServer/log/script ']'
  1698. +++ '[' -n START ']'
  1699. ++++ date '+%b %d %H:%M:%S'
  1700. +++ echo -e 'Sep 23 20:26:35 csgo-server: START: PASS: Started Madd Congregation'
  1701. +++ exitcode=0
  1702. +++ rm /home/CSGOServer/log/script/.csgo-server-tmux-error.tmp
  1703. +++ echo -en '\n'
  1704. +++ core_exit.sh
  1705. +++ functionfile=core_exit.sh
  1706. +++ fn_fetch_core_dl
  1707. +++ github_file_url_dir=lgsm/functions
  1708. +++ github_file_url_name=core_exit.sh
  1709. +++ filedir=/home/CSGOServer/lgsm/functions
  1710. +++ filename=core_exit.sh
  1711. +++ githuburl=https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/functions/core_exit.sh
  1712. +++ '[' '!' -f /home/CSGOServer/lgsm/functions/core_exit.sh ']'
  1713. +++ source /home/CSGOServer/lgsm/functions/core_exit.sh
  1714. ++++ '[' -n '' ']'
  1715. ++++ '[' -n 0 ']'
  1716. ++++ '[' 0 '!=' 0 ']'
  1717. ++++ exitcode=0
  1718. ++++ fn_script_log_pass 'command_start.sh exiting with code: 0'
  1719. ++++ '[' -d /home/CSGOServer/log/script ']'
  1720. ++++ '[' -n START ']'
  1721. +++++ date '+%b %d %H:%M:%S'
  1722. ++++ echo -e 'Sep 23 20:26:35 csgo-server: START: PASS: command_start.sh exiting with code: 0'
  1723. ++++ exitcode=0
  1724. ++++ fn_exit_dev_debug
  1725. ++++ '[' -f /home/CSGOServer/.dev-debug ']'
  1726. ++++ echo ''
  1727. ++++ echo 'command_start.sh exiting with code: 0'
  1728. ++++ trap - INT
  1729. ++++ exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement