Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  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.  
  6. [supervisord]
  7. logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
  8. pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  9. childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
  10.  
  11. [inet_http_server] ; inet (TCP) server disabled by default
  12. port=127.0.0.1:9001 ; (ip_address:port specifier, *:port for all iface)
  13. ;username=user ; (default is no username (open server))
  14. ;password=123 ; (default is no password (open server))
  15.  
  16. ; the below section must remain in the config file for RPC
  17. ; (supervisorctl/web interface) to work, additional interfaces may be
  18. ; added by defining them in separate rpcinterface: sections
  19. [rpcinterface:supervisor]
  20. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  21.  
  22. [supervisorctl]
  23. serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
  24.  
  25. ; The [include] section can just contain the "files" setting. This
  26. ; setting can list multiple files (separated by whitespace or
  27. ; newlines). It can also contain wildcards. The filenames are
  28. ; interpreted as relative to this file. Included files *cannot*
  29. ; include files themselves.
  30.  
  31. ;[eventlistener:process_event_gateway]
  32. ;user=kingmidas
  33. ;directory=/home/kingmidas/functional_prototype/qlayer
  34. ;command=python process_event_gateway.py
  35. ;numprocs=1 ; number of processes copies to start (def 1)
  36. ;events=PROCESS_STATE ; event notif. types to subscribe to (req'd)
  37. ;buffer_size=50 ; event buffer queue size (default 10)
  38. ;priority=-1 ; the relative start priority (default -1)
  39. ;autostart=true ; start at supervisord start (default: true)
  40. ;autorestart=unexpected ; whether/when to restart (default: unexpected)
  41.  
  42.  
  43. ; The below sample group section shows all possible group values,
  44. ; create one or more 'real' group: sections to create "heterogeneous"
  45. ; process groups.
  46.  
  47. ;[group:thegroupname]
  48. ;programs=progname1,progname2 ; each refers to 'x' in [program:x] definitions
  49. ;priority=999 ; the relative start priority (default 999)
  50.  
  51. ; The [include] section can just contain the "files" setting. This
  52. ; setting can list multiple files (separated by whitespace or
  53. ; newlines). It can also contain wildcards. The filenames are
  54. ; interpreted as relative to this file. Included files *cannot*
  55. ; include files themselves.
  56.  
  57. ;[include]
  58. ;files = relative/directory/*.ini
  59.  
  60. [program:main_app]
  61. user=sifu-local
  62. directory=/home/sifu-local/mimer/supervisor/ss15m22_sw/main_app/build/bin
  63. command=/home/sifu-local/mimer/supervisor/ss15m22_sw/main_app/build/bin/main_app
  64. priority=1
  65. redirect_stderr=true
  66. autostart=true
  67. autorestart=true
  68.  
  69. [program:control_app]
  70. user=sifu-local
  71. directory=/home/sifu-local/mimer/supervisor/ss15m22_sw/control_app/build/bin
  72. command=/home/sifu-local/mimer/supervisor/ss15m22_sw/control_app/build/bin/control_app /dev/ttyUSB0
  73. priority=1
  74. redirect_stderr=true
  75. autostart=true
  76. autorestart=true
  77.  
  78. [include]
  79. files = /etc/supervisor/conf.d/*.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement