supervisord.conf 573 B

12345678910111213141516171819202122232425
  1. [supervisord]
  2. pidfile=/var/run/supervisord.pid
  3. nodaemon=true
  4. user=root
  5. [program:syslog-ng]
  6. command=/usr/sbin/syslog-ng --foreground --no-caps
  7. stdout_logfile=/dev/stdout
  8. stdout_logfile_maxbytes=0
  9. stderr_logfile=/dev/stderr
  10. stderr_logfile_maxbytes=0
  11. autostart=true
  12. [program:postfix]
  13. command=/opt/postfix.sh
  14. stdout_logfile=/dev/stdout
  15. stdout_logfile_maxbytes=0
  16. stderr_logfile=/dev/stderr
  17. stderr_logfile_maxbytes=0
  18. autorestart=true
  19. [eventlistener:processes]
  20. command=/usr/local/sbin/stop-supervisor.sh
  21. events=PROCESS_STATE_STOPPED, PROCESS_STATE_EXITED, PROCESS_STATE_FATAL