Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2016
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.04 KB | None | 0 0
  1. root@ubuntu-512mb-sfo1-04:/etc/init.d# systemctl status supervisord.service
  2. supervisord.service - LSB: Example initscript
  3. Loaded: loaded (/etc/init.d/supervisord; bad; vendor preset: enabled)
  4. Active: failed (Result: exit-code) since Wed 2016-06-22 22:57:39 CST; 11s ago
  5. Docs: man:systemd-sysv-generator(8)
  6. Process: 10853 ExecStart=/etc/init.d/supervisord start (code=exited, status=1/FAILURE)
  7. Tasks: 3
  8. Memory: 33.9M
  9. CPU: 155ms
  10. CGroup: /system.slice/supervisord.service
  11. ├─10603 /usr/bin/python /usr/local/bin/supervisord -c /etc/supervisord.conf
  12. ├─10645 /usr/bin/python /usr/local/bin/supervisord -c /etc/supervisord.conf
  13. └─10685 /usr/bin/python /usr/local/bin/supervisord -c /etc/supervisord.conf
  14.  
  15. Jun 22 22:57:39 ubuntu-512mb-sfo1-04 systemd[1]: Stopped LSB: Example initscript.
  16. Jun 22 22:57:39 ubuntu-512mb-sfo1-04 systemd[1]: Starting LSB: Example initscript...
  17. Jun 22 22:57:39 ubuntu-512mb-sfo1-04 supervisord[10853]: Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.
  18. Jun 22 22:57:39 ubuntu-512mb-sfo1-04 supervisord[10853]: For help, use /usr/local/bin/supervisord -h
  19. Jun 22 22:57:39 ubuntu-512mb-sfo1-04 systemd[1]: supervisord.service: Control process exited, code=exited status=1
  20. Jun 22 22:57:39 ubuntu-512mb-sfo1-04 systemd[1]: Failed to start LSB: Example initscript.
  21. Jun 22 22:57:39 ubuntu-512mb-sfo1-04 systemd[1]: supervisord.service: Unit entered failed state.
  22. Jun 22 22:57:39 ubuntu-512mb-sfo1-04 systemd[1]: supervisord.service: Failed with result 'exit-code'.
  23.  
  24. [unix_http_server]
  25. file=/tmp/supervisor.sock ; (the path to the socket file)
  26. chmod = 0777
  27. ;chmod=0700 ; socket file mode (default 0700)
  28. ;chown=nobody:nogroup ; socket file uid:gid owner
  29. ;username=user ; (default is no username (open server))
  30. ;password=123 ; (default is no password (open server))
  31.  
  32. ;[inet_http_server] ; inet (TCP) server disabled by default
  33. ;port=127.0.0.1:9001 ; (ip_address:port specifier, *:port for all iface)
  34. ;username=user ; (default is no username (open server))
  35. ;password=123 ; (default is no password (open server))
  36.  
  37. [supervisord]
  38. logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
  39. logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
  40. logfile_backups=10 ; (num of main logfile rotation backups;default 10)
  41. loglevel=info ; (log level;default info; others: debug,warn,trace)
  42. pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  43. nodaemon=false ; (start in foreground if true;default false)
  44. minfds=1024 ; (min. avail startup file descriptors;default 1024)
  45. minprocs=200 ; (min. avail process descriptors;default 200)
  46. ;umask=022 ; (process file creation umask;default 022)
  47. ;user=chrism ; (default is current user, required if root)
  48. ;identifier=supervisor ; (supervisord identifier, default is 'supervisor')
  49. ;directory=/tmp ; (default is not to cd during start)
  50. ;nocleanup=true ; (don't clean up tempfiles at start;default false)
  51. ;childlogdir=/tmp ; ('AUTO' child log dir, default $TEMP)
  52. ;environment=KEY="value" ; (key value pairs to add to environment)
  53. ;strip_ansi=false ; (strip ansi escape codes in logs; def. false)
  54.  
  55. ; the below section must remain in the config file for RPC
  56. ; (supervisorctl/web interface) to work, additional interfaces may be
  57. ; added by defining them in separate rpcinterface: sections
  58. [rpcinterface:supervisor]
  59. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  60.  
  61. [supervisorctl]
  62. serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
  63. ;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket
  64. ;username=chris ; should be same as http_username if set
  65. ;password=123 ; should be same as http_password if set
  66. ;prompt=mysupervisor ; cmd line prompt (default "supervisor")
  67. ;history_file=~/.sc_history ; use readline history if available
  68.  
  69. ; The below sample program section shows all possible program subsection values,
  70. ; create one or more 'real' program: sections to be able to control them under
  71. ; supervisor.
  72.  
  73. ;[program:theprogramname]
  74. ;command=/bin/cat ; the program (relative uses PATH, can take args)
  75. ;process_name=%(program_name)s ; process_name expr (default %(program_name)s)
  76. ;numprocs=1 ; number of processes copies to start (def 1)
  77. ;directory=/tmp ; directory to cwd to before exec (def no cwd)
  78. ;umask=022 ; umask for process (default None)
  79. ;priority=999 ; the relative start priority (default 999)
  80. ;autostart=true ; start at supervisord start (default: true)
  81. ;startsecs=1 ; # of secs prog must stay up to be running (def. 1)
  82. ;startretries=3 ; max # of serial start failures when starting (default 3)
  83. ;autorestart=unexpected ; when to restart if exited after running (def: unexpected)
  84. ;exitcodes=0,2 ; 'expected' exit codes used with autorestart (default 0,2)
  85. ;stopsignal=QUIT ; signal used to kill process (default TERM)
  86. ;stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10)
  87. ;stopasgroup=false ; send stop signal to the UNIX process group (default false)
  88. ;killasgroup=false ; SIGKILL the UNIX process group (def false)
  89. ;user=chrism ; setuid to this UNIX account to run the program
  90. ;redirect_stderr=true ; redirect proc stderr to stdout (default false)
  91. ;stdout_logfile=/a/path ; stdout log path, NONE for none; default AUTO
  92. ;stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)
  93. ;stdout_logfile_backups=10 ; # of stdout logfile backups (default 10)
  94. ;stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0)
  95. ;stdout_events_enabled=false ; emit events on stdout writes (default false)
  96. ;stderr_logfile=/a/path ; stderr log path, NONE for none; default AUTO
  97. ;stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)
  98. ;stderr_logfile_backups=10 ; # of stderr logfile backups (default 10)
  99. ;stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0)
  100. ;stderr_events_enabled=false ; emit events on stderr writes (default false)
  101. ;environment=A="1",B="2" ; process environment additions (def no adds)
  102. ;serverurl=AUTO ; override serverurl computation (childutils)
  103.  
  104. ; The below sample eventlistener section shows all possible
  105. ; eventlistener subsection values, create one or more 'real'
  106. ; eventlistener: sections to be able to handle event notifications
  107. ; sent by supervisor.
  108.  
  109. ;[eventlistener:theeventlistenername]
  110. ;command=/bin/eventlistener ; the program (relative uses PATH, can take args)
  111. ;process_name=%(program_name)s ; process_name expr (default %(program_name)s)
  112. ;numprocs=1 ; number of processes copies to start (def 1)
  113. ;events=EVENT ; event notif. types to subscribe to (req'd)
  114. ;buffer_size=10 ; event buffer queue size (default 10)
  115. ;directory=/tmp ; directory to cwd to before exec (def no cwd)
  116. ;umask=022 ; umask for process (default None)
  117. ;priority=-1 ; the relative start priority (default -1)
  118. ;autostart=true ; start at supervisord start (default: true)
  119. ;startsecs=1 ; # of secs prog must stay up to be running (def. 1)
  120. ;startretries=3 ; max # of serial start failures when starting (default 3)
  121. ;autorestart=unexpected ; autorestart if exited after running (def: unexpected)
  122. ;exitcodes=0,2 ; 'expected' exit codes used with autorestart (default 0,2)
  123. ;stopsignal=QUIT ; signal used to kill process (default TERM)
  124. ;stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10)
  125. ;stopasgroup=false ; send stop signal to the UNIX process group (default false)
  126. ;killasgroup=false ; SIGKILL the UNIX process group (def false)
  127. ;user=chrism ; setuid to this UNIX account to run the program
  128. ;redirect_stderr=false ; redirect_stderr=true is not allowed for eventlisteners
  129. ;stdout_logfile=/a/path ; stdout log path, NONE for none; default AUTO
  130. ;stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)
  131. ;stdout_logfile_backups=10 ; # of stdout logfile backups (default 10)
  132. ;stdout_events_enabled=false ; emit events on stdout writes (default false)
  133. ;stderr_logfile=/a/path ; stderr log path, NONE for none; default AUTO
  134. ;stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)
  135. ;stderr_logfile_backups=10 ; # of stderr logfile backups (default 10)
  136. ;stderr_events_enabled=false ; emit events on stderr writes (default false)
  137. ;environment=A="1",B="2" ; process environment additions
  138. ;serverurl=AUTO ; override serverurl computation (childutils)
  139.  
  140. ; The below sample group section shows all possible group values,
  141. ; create one or more 'real' group: sections to create "heterogeneous"
  142. ; process groups.
  143.  
  144. ;[group:thegroupname]
  145. ;programs=progname1,progname2 ; each refers to 'x' in [program:x] definitions
  146. ;priority=999 ; the relative start priority (default 999)
  147.  
  148. ; The [include] section can just contain the "files" setting. This
  149. ; setting can list multiple files (separated by whitespace or
  150. ; newlines). It can also contain wildcards. The filenames are
  151. ; interpreted as relative to this file. Included files *cannot*
  152. ; include files themselves.
  153.  
  154. ;[include]
  155. ;files = relative/directory/*.ini
  156.  
  157. [include]
  158. files = /supervisor/*.conf
  159.  
  160. root@ubuntu-512mb-sfo1-04:/etc/init.d# service supervisord stop
  161.  
  162. root@ubuntu-512mb-sfo1-04:/etc/init.d# service supervisord start
  163. Job for supervisord.service failed because the control process exited with error code. See "systemctl status supervisord.service" and "journalctl -xe" for details.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement