sample.conf 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. [supervisord]
  2. xmlrpc_port=127.0.0.1:9001 ; (default is to run no xmlrpc server)
  3. exitcodes=0,2 ; (default 0,2)
  4. umask=022 ; (default 022)
  5. logfile=supervisord.log ; (default $CWD/supervisord.log)
  6. logfile_maxbytes=50MB ; (default 50MB)
  7. logfile_backups=10 ; (default 10)
  8. loglevel=info ; (default info)
  9. pidfile=supervisord.pid ; (default $CWD/supervisord.pid)
  10. nodaemon=false ; (default false)
  11. identifier=supervisor ; (default supervisor)
  12. minfds=1024 ; (default 1024)
  13. minprocs=200 ; (default 200)
  14. backofflimit=3 ; (default 3)
  15. ;nocleanup=true ; (don't clean up tempfiles at start;default false)
  16. ;forever=false ; (keep restarting processes forever default false)
  17. ;xmlrpc_username=user ; (default is no username (open system))
  18. ;xmlrpc_password=123 ; (default is no password (open system))
  19. ;childlogdir=/tmp ; (default $TEMP)
  20. ;user=nobody ; (default is current user, required if root)
  21. ;directory=/tmp ; (default is not to cd during start)
  22. [supervisorctl]
  23. serverurl=http://127.0.0.1:9001
  24. ;username=chris ; should be same as xmlrpc_username if set
  25. ;password=123 ; should be same as xmlrpc_password if set
  26. [program:cat]
  27. command=/bin/cat
  28. priority=1
  29. autostart=true
  30. autorestart=true
  31. user=chrism
  32. stopsignal=KILL
  33. [program:cat2]
  34. command=/bin/cat
  35. priority=1
  36. autostart=true
  37. autorestart=true
  38. user=chrism
  39. [program:catnostart]
  40. command=/bin/cat
  41. priority=1
  42. autostart=false
  43. autorestart=false
  44. user=chrism
  45. [program:catnorestart]
  46. command=/bin/cat
  47. priority=1
  48. autostart=true
  49. autorestart=false
  50. user=chrism
  51. [program:exitcleanly]
  52. command=/bin/ls /tmp
  53. priority=1
  54. autostart=true
  55. autorestart=false
  56. user=chrism
  57. [program:wrong]
  58. command=/bin/wrong
  59. priority=1
  60. autostart=true
  61. autorestart=true
  62. user=chrism
  63. [program:notexecutable]
  64. command=/Users/chrism/.ssh/config
  65. priority=1
  66. autostart=true
  67. autorestart=true
  68. user=chrism
  69. [program:directory]
  70. command=/Users/chrism/.ssh
  71. priority=1
  72. autostart=true
  73. autorestart=true
  74. user=chrism