supervisor.conf 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. # 内嵌版WebSocket
  2. [program:chat_ws_group]
  3. command=/usr/local/node/bin/node /data/webapps/ws.meechat.club/ws_group.js %(process_num)s
  4. process_name=%(process_num)s
  5. directory=/data/webapps/ws.meechat.club/
  6. numprocs=4
  7. autostart=true
  8. autorestart=true
  9. stdout_logfile=/tmp/chat_ws_group_%(process_num)s.log
  10. stderr_logfile=/tmp/chat_ws_group_%(process_num)s.err.log
  11. # 完整版WebSocket
  12. [program:chat_ws_im]
  13. command=/usr/local/node/bin/node /data/webapps/ws.mee.chat/ws_im.js %(process_num)s
  14. process_name=%(process_num)s
  15. directory=/data/webapps/ws.mee.chat/
  16. numprocs=4
  17. autostart=true
  18. autorestart=true
  19. stdout_logfile=/tmp/chat_ws_im_%(process_num)s.log
  20. stderr_logfile=/tmp/chat_ws_im_%(process_num)s.err.log
  21. # MeeChat同步表数据
  22. [program:chat_syncAll]
  23. command=/usr/local/php/bin/php /data/webapps/mee.chat/protected/bin/sync/syncAll.php %(process_num)s
  24. process_name=%(process_num)s
  25. directory=/data/webapps/mee.chat/protected/bin/sync/
  26. numprocs=3
  27. autostart=true
  28. autorestart=true
  29. stdout_logfile=/tmp/mee_syncAll_%(process_num)s.log