You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

supervisord.conf 1011B

  1. [unix_http_server]
  2. file=/tmp/supervisor.sock
  3. [supervisord]
  4. logfile=/tmp/supervisord.log
  5. logfile_maxbytes=50MB
  6. logfile_backups=10
  7. loglevel=info
  8. pidfile=/tmp/supervisord.pid
  9. nodaemon=true
  10. [rpcinterface:supervisor]
  11. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  12. [supervisorctl]
  13. serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
  14. [program:php-fpm]
  15. command=/usr/sbin/php-fpm7.0 -c /etc/php/7.0/fpm
  16. stdout_events_enabled=true
  17. stderr_events_enabled=true
  18. [program:php-fpm-log]
  19. command=tail -f /var/log/php-fpm.log
  20. stdout_events_enabled=true
  21. stderr_events_enabled=true
  22. autorestart=unexpected
  23. [program:nginx]
  24. command=/usr/sbin/nginx
  25. stdout_events_enabled=true
  26. stderr_events_enabled=true
  27. [program:setup]
  28. command=bin/bash /scripts/setup.sh
  29. stdout_events_enabled=true
  30. stderr_events_enabled=true
  31. autorestart=unexpected
  32. [eventlistener:stdout]
  33. command = supervisor_stdout
  34. buffer_size = 100
  35. events = PROCESS_LOG
  36. result_handler = supervisor_stdout:event_handler