supervisord.conf 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ; supervisor config file
  2. [unix_http_server]
  3. file=/var/run/supervisor.sock ; (the path to the socket file)
  4. chmod=0700 ; sockef file mode (default 0700)
  5. [supervisord]
  6. logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
  7. pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  8. childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
  9. nodaemon=true
  10. ; the below section must remain in the config file for RPC
  11. ; (supervisorctl/web interface) to work, additional interfaces may be
  12. ; added by defining them in separate rpcinterface: sections
  13. [rpcinterface:supervisor]
  14. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  15. [supervisorctl]
  16. serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
  17. ; The [include] section can just contain the "files" setting. This
  18. ; setting can list multiple files (separated by whitespace or
  19. ; newlines). It can also contain wildcards. The filenames are
  20. ; interpreted as relative to this file. Included files *cannot*
  21. ; include files themselves.
  22. [program:greaterwms]
  23. directory=/GreaterWMS/
  24. user=root
  25. command=daphne -b 0.0.0.0 -p 8008 --access-log /GreaterWMS/greaterwms_server_access.log greaterwms.asgi:application
  26. autostart=true
  27. autorestart=true
  28. startsecs=0
  29. stopwaitsecs=0
  30. ;stdout_logfile=/GreaterWMS/greaterwms_server_access.log
  31. stderr_logfile=/GreaterWMS/greaterwms_server_err.log
  32. redirect_stderr=true
  33. [include]
  34. files = /etc/supervisor/conf.d/*.conf