supervisor.conf 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. # WebSocket常驻进程
  2. [program:dice_ws]
  3. command=/usr/local/node/bin/node /data/webapps/ws-dice.eosget.io/ws.js %(process_num)s 2>&1
  4. process_name=%(process_num)s
  5. directory=/data/webapps/ws-dice.eosget.io/
  6. numprocs=4
  7. autostart=true
  8. autorestart=true
  9. stdout_logfile=/tmp/dice_ws_%(process_num)s.log
  10. # 上报数据插入
  11. [program:php0]
  12. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/data/insertReportData.php 2>&1
  13. process_name=insertReportData
  14. directory=/data/webapps/dice.eosget.io/protected/bin/data/
  15. numprocs=1
  16. autostart=true
  17. autorestart=true
  18. stdout_logfile=/tmp/insertReportData.log
  19. # 开奖并创建游戏、关闭并创建游戏
  20. [program:checkGames]
  21. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/game/checkOffers.php %(process_num)s
  22. process_name=%(process_num)s
  23. directory=/data/webapps/dice.eosget.io/protected/bin/game/
  24. numprocs=3
  25. autostart=true
  26. autorestart=true
  27. stdout_logfile=/tmp/checkGames_%(process_num)s.log
  28. # 创建游戏
  29. [program:php1]
  30. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/game/createNewGame.php
  31. process_name=createNewGame
  32. directory=/data/webapps/dice.eosget.io/protected/bin/game/
  33. numprocs=1
  34. autostart=true
  35. autorestart=true
  36. stdout_logfile=/tmp/createNewGame.log
  37. # 结算转账
  38. [program:eosTransfer]
  39. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/eosTransfer.php %(process_num)s
  40. process_name=%(process_num)s
  41. directory=/data/webapps/dice.eosget.io/protected/bin/
  42. numprocs=4
  43. autostart=true
  44. autorestart=true
  45. stdout_logfile=/tmp/eosTransfer_%(process_num)s.log
  46. # 检查转账结算交易,异常则告警
  47. [program:php3]
  48. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/eosRedo.php 2>&1
  49. process_name=eosRedo
  50. directory=/data/webapps/dice.eosget.io/protected/bin/
  51. numprocs=1
  52. autostart=true
  53. autorestart=true
  54. stdout_logfile=/tmp/eosRedo.log
  55. # 支持命令行下注,自动填充下注交易id
  56. [program:php4]
  57. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/eosFillTransactionId.php 2>&1
  58. process_name=eosFillTransactionId
  59. directory=/data/webapps/dice.eosget.io/protected/bin/
  60. numprocs=1
  61. autostart=true
  62. autorestart=true
  63. stdout_logfile=/tmp/eosFillTransactionId.log
  64. # 满12小时自动提现
  65. [program:php5]
  66. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/user/autoWithdraw.php 2>&1
  67. process_name=autoWithdraw
  68. directory=/data/webapps/dice.eosget.io/protected/bin/user/
  69. numprocs=1
  70. autostart=true
  71. autorestart=true
  72. stdout_logfile=/tmp/autoWithdraw.log
  73. # 检查用户余额明细,交易丢失则告警
  74. [program:php6]
  75. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/user/checkBalanceLog.php 2>&1
  76. process_name=checkBalanceLog
  77. directory=/data/webapps/dice.eosget.io/protected/bin/user/
  78. numprocs=1
  79. autostart=true
  80. autorestart=true
  81. stdout_logfile=/tmp/checkBalanceLog.log
  82. # 检查用户是否存在漏上报充值交易id
  83. [program:php7]
  84. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/user/checkAccount.php 2>&1
  85. process_name=checkAccount
  86. directory=/data/webapps/dice.eosget.io/protected/bin/user/
  87. numprocs=1
  88. autostart=true
  89. autorestart=true
  90. stdout_logfile=/tmp/checkAccount.log
  91. # 用户自动下注 - 下注模式
  92. [program:userAutoBetMoniter_Exec4setup]
  93. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/user/userAutoBetMoniter.php exec4setup %(process_num)s
  94. process_name=%(process_num)s
  95. directory=/data/webapps/dice.eosget.io/protected/bin/user/
  96. numprocs=2
  97. autostart=true
  98. autorestart=true
  99. stdout_logfile=/tmp/userAutoBetMoniter_Exec4setup_%(process_num)s.log
  100. # 用户自动下注 - 生产模式
  101. [program:php8]
  102. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/user/userAutoBetMoniter.php produceBetPool
  103. process_name=userAutoBetMoniter_produceBetPool
  104. directory=/data/webapps/dice.eosget.io/protected/bin/user/
  105. numprocs=1
  106. autostart=true
  107. autorestart=true
  108. stdout_logfile=/tmp/userAutoBetMoniter_produceBetPool.log
  109. # 用户自动下注 - 数据维护模式
  110. [program:php9]
  111. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/user/userAutoBetMoniter.php maintainData
  112. process_name=userAutoBetMoniter_MaintainData
  113. directory=/data/webapps/dice.eosget.io/protected/bin/user/
  114. numprocs=1
  115. autostart=true
  116. autorestart=true
  117. stdout_logfile=/tmp/userAutoBetMoniter_MaintainData.log
  118. # 同步表数据
  119. [program:syncAll]
  120. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/sync/syncAll.php %(process_num)s
  121. process_name=%(process_num)s
  122. directory=/data/webapps/dice.eosget.io/protected/bin/sync/numprocs=6
  123. autostart=true
  124. autorestart=true
  125. stdout_logfile=/tmp/syncAll_%(process_num)s.log
  126. # 机器人自动充值提现
  127. [program:php10]
  128. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/robot/RobotTradeConfusor.php run
  129. process_name=RobotTradeConfusor_run
  130. directory=/data/webapps/dice.eosget.io/protected/bin/robot/
  131. numprocs=1
  132. autostart=false
  133. autorestart=false
  134. stdout_logfile=/tmp/RobotTradeConfusor_run.log
  135. # 机器人自动下注 - 生产/常驻
  136. [program:php11]
  137. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/robot/RobotKeeper.php maintain
  138. process_name=robotKeeper_maintain
  139. directory=/data/webapps/dice.eosget.io/protected/bin/robot/
  140. numprocs=1
  141. autostart=true
  142. autorestart=true
  143. stdout_logfile=/tmp/robotKeeper_maintain.log
  144. # 机器人自动下注 - 消费/常驻
  145. [program:php12]
  146. command=/usr/local/php/bin/php /data/webapps/dice.eosget.io/protected/bin/robot/RobotKeeper.php bet
  147. process_name=robotKeeper_bet
  148. directory=/data/webapps/dice.eosget.io/protected/bin/robot/
  149. numprocs=1
  150. autostart=true
  151. autorestart=true
  152. stdout_logfile=/tmp/robotKeeper_bet.log