CHANGES.txt 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539
  1. 4.0.0.dev0 (Next 4.x Release)
  2. -----------------------------
  3. - Support for Python 3 has been added. On Python 3, Supervisor requires
  4. Python 3.2 or later.
  5. - Support for Python 2.4 and 2.5 has been dropped. On Python 2, Supervisor
  6. now requires Python 2.6 or later.
  7. - The ``supervisor`` package is no longer a namespace package.
  8. - Parsing ``environment=`` has been improved to allow escaped quotes
  9. inside quotes and quoted empty values. Patch by Stefan Friesel.
  10. - Added new ``stdout_syslog`` and ``stderr_syslog`` options to the config
  11. file. These are boolean options that indicate whether process output will
  12. be sent to syslog. Supervisor can now log to both files and syslog at the
  13. same time. Specifying a log filename of ``syslog`` is still supported
  14. but deprecated. Patch by Jason R. Coombs.
  15. - Allow > 1023 file descriptors by using poll/kqueue on platforms which
  16. support it. See https://github.com/Supervisor/supervisor/pull/129.
  17. Patch by Igor Sobreira.
  18. - The behavior of the config file expansion ``%(here)s`` has changed. In
  19. previous versions, a bug caused ``%(here)s`` to always expand to the
  20. directory of the root config file. Now, when ``%(here)s`` is used inside
  21. a file included via ``[include]``, it will expand to the directory of
  22. that file. Thanks to Alex Eftimie and Zoltan Toth-Czifra for the patches.
  23. - Files included via the ``[include]`` section are now logged at the ``INFO``
  24. level instead of ``WARN``. Patch by Daniel Hahler.
  25. - Files included via the ``[include]`` section are read in sorted order. In
  26. past versions, the order was undefined. Patch by Ionel Cristian Mărieș.
  27. - ``supervisorctl start`` and ``supervisorctl stop`` now complete more quickly
  28. when handling many processes. Thanks to Chris McDonough for this patch.
  29. See: https://github.com/Supervisor/supervisor/issues/131
  30. - Environment variables are now expanded for all config file options.
  31. Patch by Dexter Tad-y.
  32. - Added ``signalProcess``, ``signalProcessGroup``, and ``signalAllProcesses``
  33. XML-RPC methods to supervisor RPC interface. Thanks to Casey Callendrello,
  34. Marc Abramowitz, and Moriyoshi Koizumi for the patches.
  35. - Added ``signal`` command to supervisorctl. Thanks to Moriyoshi Koizumi and
  36. Marc Abramowitz for the patches.
  37. - Errors caused by bad values in a config file now show the config section
  38. to make debugging easier. Patch by Marc Abramowitz.
  39. - Setting ``redirect_stderr=true`` in an `[eventlistener:x]`` section is now
  40. disallowed because any messages written to ``stderr`` would interfere
  41. with the eventlistener protocol on ``stdout``.
  42. - Fixed a bug where spawning a process could cause ``supervisord`` to crash
  43. if an ``IOError`` occurred while setting up logging. One way this could
  44. happen is if a log filename was accidentally set to a directory instead
  45. of a file. Thanks to Grzegorz Nosek for reporting this issue.
  46. - Fixed a bug introduced in 3.1.0 where ``supervisord`` could crash when
  47. attempting to display a resource limit error.
  48. - Fixed a bug where ``supervisord`` could crash with the message
  49. ``Assertion failed for processname: RUNNING not in STARTING`` if a time
  50. change caused the last start time of the process to be in the future.
  51. Thanks to Róbert Nagy, Sergey Leschenko, and samhair for the patches.
  52. - A warning is now logged if an eventlistener enters the UNKNOWN state,
  53. which usually indicates a bug in the eventlistener. Thanks to Steve
  54. Winton and detailyang for reporting issues that led to this change.
  55. - Errors from the web interface are now logged at the ``ERROR`` level.
  56. Previously, they were logged at the ``TRACE`` level and easily
  57. missed. Thanks to Thomas Güttler for reporting this issue.
  58. - Fixed ``DeprecationWarning: Parameters to load are deprecated. Call
  59. .resolve and .require separately.`` on setuptools >= 11.3.
  60. - If ``redirect_stderr=true`` and ``stderr_logfile=auto``, no stderr log
  61. file will be created. In previous versions, an empty stderr log file
  62. would be created. Thanks to Łukasz Kożuchowski for the initial patch.
  63. - Fixed an issue in Medusa that would cause ``supervisorctl tail -f`` to
  64. disconnect if many other ``supervisorctl`` commands were run in parallel.
  65. Patch by Stefan Friesel.
  66. 3.1.3 (2014-10-28)
  67. ------------------
  68. - Fixed an XML-RPC bug where the ElementTree-based parser handled strings
  69. like ``<value><string>hello</string></value>`` but not strings like
  70. ``<value>hello</value>``, which are valid in the XML-RPC spec. This
  71. fixes compatibility with the Apache XML-RPC client for Java and
  72. possibly other clients.
  73. 3.1.2 (2014-09-07)
  74. ------------------
  75. - Fixed a bug where ``tail group:*`` in ``supervisorctl`` would show a 500
  76. Internal Server Error rather than a BAD_NAME fault.
  77. - Fixed a bug where the web interface would show a 500 Internal Server Error
  78. instead of an error message for some process start faults.
  79. - Removed medusa files not used by Supervisor.
  80. 3.1.1 (2014-08-11)
  81. ------------------
  82. - Fixed a bug where ``supervisorctl tail -f name`` output would stop if log
  83. rotation occurred while tailing.
  84. - Prevent a crash when a greater number of file descriptors were attempted to
  85. be opened than permitted by the environment when starting a bunch of
  86. programs. Now, instead a spawn error is logged.
  87. - Compute "channel delay" properly, fixing symptoms where a supervisorctl
  88. start command would hang for a very long time when a process (or many
  89. processes) are spewing to their stdout or stderr. See comments attached to
  90. https://github.com/Supervisor/supervisor/pull/263 .
  91. - Added ``docs/conf.py``, ``docs/Makefile``, and ``supervisor/scripts/*.py``
  92. to the release package.
  93. 3.1.0 (2014-07-29)
  94. ------------------
  95. - The output of the ``start``, ``stop``, ``restart``, and ``clear`` commands
  96. in ``supervisorctl`` has been changed to be consistent with the ``status``
  97. command. Previously, the ``status`` command would show a process like
  98. ``foo:foo_01`` but starting that process would show ``foo_01: started``
  99. (note the group prefix ``foo:`` was missing). Now, starting the process
  100. will show ``foo:foo_01: started``. Suggested by Chris Wood.
  101. - The ``status`` command in ``supervisorctl`` now supports group name
  102. syntax: ``status group:*``.
  103. - The process column in the table output by the ``status`` command in
  104. ``supervisorctl`` now expands to fit the widest name.
  105. - The ``update`` command in ``supervisorctl`` now accepts optional group
  106. names. When group names are specified, only those groups will be
  107. updated. Patch by Gary M. Josack.
  108. - Tab completion in ``supervisorctl`` has been improved and now works for
  109. more cases. Thanks to Mathieu Longtin and Marc Abramowitz for the patches.
  110. - Attempting to start or stop a process group in ``supervisorctl`` with the
  111. ``group:*`` syntax will now show the same error message as the ``process``
  112. syntax if the name does not exist. Previously, it would show a Python
  113. exception. Patch by George Ang.
  114. - Added new ``PROCESS_GROUP_ADDED`` and ``PROCESS_GROUP_REMOVED`` events.
  115. These events are fired when process groups are added or removed from
  116. Supervisor's runtime configuration when using the ``add`` and ``remove``
  117. commands in ``supervisorctl``. Patch by Brent Tubbs.
  118. - Stopping a process in the backoff state now changes it to the stopped
  119. state. Previously, an attempt to stop a process in backoff would be
  120. ignored. Patch by Pascal Varet.
  121. - The ``directory`` option is now expanded separately for each process in
  122. a homogeneous process group. This allows each process to have its own
  123. working directory. Patch by Perttu Ranta-aho.
  124. - Removed ``setuptools`` from the ``requires`` list in ``setup.py`` because
  125. it caused installation issues on some systems.
  126. - Fixed a bug in Medusa where the HTTP Basic authorizer would cause an
  127. exception if the password contained a colon. Thanks to Thomas Güttler
  128. for reporting this issue.
  129. - Fixed an XML-RPC bug where calling supervisor.clearProcessLogs() with a
  130. name like ``group:*`` would cause a 500 Internal Server Error rather than
  131. returning a BAD_NAME fault.
  132. - Fixed a hang that could occur in ``supervisord`` if log rotation is used
  133. and an outside program deletes an active log file. Patch by Magnus Lycka.
  134. - A warning is now logged if a glob pattern in an ``[include]`` section does
  135. not match any files. Patch by Daniel Hahler.
  136. 3.0 (2013-07-30)
  137. ----------------
  138. - Parsing the config file will now fail with an error message if a process
  139. or group name contains characters that are not compatible with the
  140. eventlistener protocol.
  141. - Fixed a bug where the ``tail -f`` command in ``supervisorctl`` would fail
  142. if the combined length of the username and password was over 56 characters.
  143. - Reading the config file now gives a separate error message when the config
  144. file exists but can't be read. Previously, any error reading the file
  145. would be reported as "could not find config file". Patch by Jens Rantil.
  146. - Fixed an XML-RPC bug where array elements after the first would be ignored
  147. when using the ElementTree-based XML parser. Patch by Zev Benjamin.
  148. - Fixed the usage message output by ``supervisorctl`` to show the correct
  149. default config file path. Patch by Alek Storm.
  150. 3.0b2 (2013-05-28)
  151. ------------------
  152. - The behavior of the program option ``user`` has changed. In all previous
  153. versions, if ``supervisord`` failed to switch to the user, a warning would
  154. be sent to the stderr log but the child process would still be spawned.
  155. This means that a mistake in the config file could result in a child
  156. process being unintentionally spawned as root. Now, ``supervisord`` will
  157. not spawn the child unless it was able to successfully switch to the user.
  158. Thanks to Igor Partola for reporting this issue.
  159. - If a user specified in the config file does not exist on the system,
  160. ``supervisord`` will now print an error and refuse to start.
  161. - Reverted a change to logging introduced in 3.0b1 that was intended to allow
  162. multiple processes to log to the same file with the rotating log handler.
  163. The implementation caused supervisord to crash during reload and to leak
  164. file handles. Also, since log rotation options are given on a per-program
  165. basis, impossible configurations could be created (conflicting rotation
  166. options for the same file). Given this and that supervisord now has syslog
  167. support, it was decided to remove this feature. A warning was added to the
  168. documentation that two processes may not log to the same file.
  169. - Fixed a bug where parsing ``command=`` could cause supervisord to crash if
  170. shlex.split() fails, such as a bad quoting. Patch by Scott Wilson.
  171. - It is now possible to use ``supervisorctl`` on a machine with no
  172. ``supervisord.conf`` file by supplying the connection information in
  173. command line options. Patch by Jens Rantil.
  174. - Fixed a bug where supervisord would crash if the syslog handler was used
  175. and supervisord received SIGUSR2 (log reopen request).
  176. - Fixed an XML-RPC bug where calling supervisor.getProcessInfo() with a bad
  177. name would cause a 500 Internal Server Error rather than the returning
  178. a BAD_NAME fault.
  179. - Added a favicon to the web interface. Patch by Caio Ariede.
  180. - Fixed a test failure due to incorrect handling of daylight savings time
  181. in the childutils tests. Patch by Ildar Hizbulin.
  182. - Fixed a number of pyflakes warnings for unused variables, imports, and
  183. dead code. Patch by Philippe Ombredanne.
  184. 3.0b1 (2012-09-10)
  185. ------------------
  186. - Fixed a bug where parsing ``environment=`` did not verify that key/value
  187. pairs were correctly separated. Patch by Martijn Pieters.
  188. - Fixed a bug in the HTTP server code that could cause unnecessary delays
  189. when sending large responses. Patch by Philip Zeyliger.
  190. - When supervisord starts up as root, if the ``-c`` flag was not provided, a
  191. warning is now emitted to the console. Rationale: supervisord looks in the
  192. current working directory for a ``supervisord.conf`` file; someone might
  193. trick the root user into starting supervisord while cd'ed into a directory
  194. that has a rogue ``supervisord.conf``.
  195. - A warning was added to the documentation about the security implications of
  196. starting supervisord without the ``-c`` flag.
  197. - Add a boolean program option ``stopasgroup``, defaulting to false.
  198. When true, the flag causes supervisor to send the stop signal to the
  199. whole process group. This is useful for programs, such as Flask in debug
  200. mode, that do not propagate stop signals to their children, leaving them
  201. orphaned.
  202. - Python 2.3 is no longer supported. The last version that supported Python
  203. 2.3 is Supervisor 3.0a12.
  204. - Removed the unused "supervisor_rpc" entry point from setup.py.
  205. - Fixed a bug in the rotating log handler that would cause unexpected
  206. results when two processes were set to log to the same file. Patch
  207. by Whit Morriss.
  208. - Fixed a bug in config file reloading where each reload could leak memory
  209. because a list of warning messages would be appended but never cleared.
  210. Patch by Philip Zeyliger.
  211. - Added a new Syslog log handler. Thanks to Denis Bilenko, Nathan L. Smith,
  212. and Jason R. Coombs, who each contributed to the patch.
  213. - Put all change history into a single file (CHANGES.txt).
  214. 3.0a12 (2011-12-06)
  215. -------------------
  216. - Released to replace a broken 3.0a11 package where non-Python files were
  217. not included in the package.
  218. 3.0a11 (2011-12-06)
  219. -------------------
  220. - Added a new file, ``PLUGINS.rst``, with a listing of third-party plugins
  221. for Supervisor. Contributed by Jens Rantil.
  222. - The ``pid`` command in supervisorctl can now be used to retrieve the PIDs
  223. of child processes. See ``help pid``. Patch by Gregory Wisniewski.
  224. - Added a new ``host_node_name`` expansion that will be expanded to the
  225. value returned by Python's ``platform.node`` (see
  226. http://docs.python.org/library/platform.html#platform.node).
  227. Patch by Joseph Kondel.
  228. - Fixed a bug in the web interface where pages over 64K would be truncated.
  229. Thanks to Drew Perttula and Timothy Jones for reporting this.
  230. - Renamed ``README.txt`` to ``README.rst`` so GitHub renders the file as
  231. ReStructuredText.
  232. - The XML-RPC server is now compatible with clients that do not send empty
  233. <params> when there are no parameters for the method call. Thanks to
  234. Johannes Becker for reporting this.
  235. - Fixed ``supervisorctl --help`` output to show the correct program name.
  236. - The behavior of the configuration options ``minfds`` and ``minprocs`` has
  237. changed. Previously, if a hard limit was less than ``minfds`` or
  238. ``minprocs``, supervisord would unconditionally abort with an error. Now,
  239. supervisord will attempt to raise the hard limit. This may succeed if
  240. supervisord is run as root, otherwise the error is printed as before.
  241. Patch by Benoit Sigoure.
  242. - Add a boolean program option ``killasgroup``, defaulting to false,
  243. if true when resorting to send SIGKILL to stop/terminate the process
  244. send it to its whole process group instead to take care of possible
  245. children as well and not leave them behind. Patch by Samuele Pedroni.
  246. - Environment variables may now be used in the configuration file
  247. for options that support string expansion. Patch by Aleksey Sivokon.
  248. - Fixed a race condition where supervisord might not act on a signal sent
  249. to it. Thanks to Adar Dembo for reporting the issue and supplying the
  250. initial patch.
  251. - Updated the output of ``echo_supervisord_conf`` to fix typos and
  252. improve comments. Thanks to Jens Rantil for noticing these.
  253. - Fixed a possible 500 Server Error from the web interface. This was
  254. observed when using Supervisor on a domain socket behind Nginx, where
  255. Supervisor would raise an exception because REMOTE_ADDR was not set.
  256. Patch by David Bennett.
  257. 3.0a10 (2011-03-30)
  258. -------------------
  259. - Fixed the stylesheet of the web interface so the footer line won't overlap
  260. a long process list. Thanks to Derek DeVries for the patch.
  261. - Allow rpc interface plugins to register new events types.
  262. - Bug fix for FCGI sockets not getting cleaned up when the ``reload`` command
  263. is issued from supervisorctl. Also, the default behavior has changed for
  264. FCGI sockets. They are now closed whenever the number of running processes
  265. in a group hits zero. Previously, the sockets were kept open unless a
  266. group-level stop command was issued.
  267. - Better error message when HTTP server cannot reverse-resolve a hostname to
  268. an IP address. Previous behavior: show a socket error. Current behavior:
  269. spit out a suggestion to stdout.
  270. - Environment variables set via ``environment=`` value within
  271. ``[supervisord]`` section had no effect. Thanks to Wyatt Baldwin
  272. for a patch.
  273. - Fix bug where stopping process would cause process output that happened
  274. after the stop request was issued to be lost. See
  275. https://github.com/Supervisor/supervisor/issues/11.
  276. - Moved 2.X change log entries into ``HISTORY.txt``.
  277. - Converted ``CHANGES.txt`` and ``README.txt`` into proper ReStructuredText
  278. and included them in the ``long_description`` in ``setup.py``.
  279. - Added a tox.ini to the package (run via ``tox`` in the package dir). Tests
  280. supervisor on multiple Python versions.
  281. 3.0a9 (2010-08-13)
  282. ------------------
  283. - Use rich comparison methods rather than __cmp__ to sort process configs and
  284. process group configs to better straddle Python versions. (thanks to
  285. Jonathan Riboux for identifying the problem and supplying an initial
  286. patch).
  287. - Fixed test_supervisorctl.test_maintail_dashf test for Python 2.7. (thanks
  288. to Jonathan Riboux for identifying the problem and supplying an initial
  289. patch).
  290. - Fixed the way that supervisor.datatypes.url computes a "good" URL
  291. for compatibility with Python 2.7 and Python >= 2.6.5. URLs with
  292. bogus "schemes://" will now be accepted as a version-straddling
  293. compromise (before they were rejected before supervisor would
  294. start). (thanks to Jonathan Riboux for identifying the problem
  295. and supplying an initial patch).
  296. - Add a ``-v`` / ``--version`` option to supervisord: Print the
  297. supervisord version number out to stdout and exit. (Roger Hoover)
  298. - Import iterparse from xml.etree when available (eg: Python 2.6). Patch
  299. by Sidnei da Silva.
  300. - Fixed the url to the supervisor-users mailing list. Patch by
  301. Sidnei da Silva
  302. - When parsing "environment=" in the config file, changes introduced in
  303. 3.0a8 prevented Supervisor from parsing some characters commonly
  304. found in paths unless quoting was used as in this example::
  305. environment=HOME='/home/auser'
  306. Supervisor once again allows the above line to be written as::
  307. environment=HOME=/home/auser
  308. Alphanumeric characters, "_", "/", ".", "+", "-", "(", ")", and ":" can all
  309. be used as a value without quoting. If any other characters are needed in
  310. the value, please quote it as in the first example above. Thanks to Paul
  311. Heideman for reporting this issue.
  312. - Supervisor will now look for its config file in locations relative to the
  313. executable path, allowing it to be used more easily in virtual
  314. environments. If sys.argv[0] is ``/path/to/venv/bin/supervisorctl``,
  315. supervisor will now look for it's config file in
  316. ``/path/to/venv/etc/supervisord.conf`` and
  317. ``/path/to/venv/supervisord.conf`` in addition to the other standard
  318. locations. Patch by Chris Rossi.
  319. 3.0a8 (2010-01-20)
  320. ------------------
  321. - Don't cleanup file descriptors on first supervisord invocation:
  322. this is a lame workaround for Snow Leopard systems that use
  323. libdispatch and are receiving "Illegal instruction" messages at
  324. supervisord startup time. Restarting supervisord via
  325. "supervisorctl restart" may still cause a crash on these systems.
  326. - Got rid of Medusa hashbang headers in various files to ease RPM
  327. packaging.
  328. - Allow umask to be 000 (patch contributed by Rowan Nairn).
  329. - Fixed a bug introduced in 3.0a7 where supervisorctl wouldn't ask
  330. for a username/password combination properly from a
  331. password-protected supervisord if it wasn't filled in within the
  332. "[supervisorctl]" section username/password values. It now
  333. properly asks for a username and password.
  334. - Fixed a bug introduced in 3.0a7 where setup.py would not detect the
  335. Python version correctly. Patch by Daniele Paolella.
  336. - Fixed a bug introduced in 3.0a7 where parsing a string of key/value
  337. pairs failed on Python 2.3 due to use of regular expression syntax
  338. introduced in Python 2.4.
  339. - Removed the test suite for the ``memmon`` console script, which was
  340. moved to the Superlance package in 3.0a7.
  341. - Added release dates to CHANGES.txt.
  342. - Reloading the config for an fcgi process group did not close the fcgi
  343. socket - now, the socket is closed whenever the group is stopped as a unit
  344. (including during config update). However, if you stop all the processes
  345. in a group individually, the socket will remain open to allow for graceful
  346. restarts of FCGI daemons. (Roger Hoover)
  347. - Rereading the config did not pick up changes to the socket parameter in a
  348. fcgi-program section. (Roger Hoover)
  349. - Made a more friendly exception message when a FCGI socket cannot be
  350. created. (Roger Hoover)
  351. - Fixed a bug where the --serverurl option of supervisorctl would not
  352. accept a URL with a "unix" scheme. (Jason Kirtland)
  353. - Running the tests now requires the "mock" package. This dependency has
  354. been added to "tests_require" in setup.py. (Roger Hoover)
  355. - Added support for setting the ownership and permissions for an FCGI socket.
  356. This is done using new "socket_owner" and "socket_mode" options in an
  357. [fcgi-program:x] section. See the manual for details. (Roger Hoover)
  358. - Fixed a bug where the FCGI socket reference count was not getting
  359. decremented on spawn error. (Roger Hoover)
  360. - Fixed a Python 2.6 deprecation warning on use of the "sha" module.
  361. - Updated ez_setup.py to one that knows about setuptools 0.6c11.
  362. - Running "supervisorctl shutdown" no longer dumps a Python backtrace
  363. when it can't connect to supervisord on the expected socket. Thanks
  364. to Benjamin Smith for reporting this.
  365. - Removed use of collections.deque in our bundled version of asynchat
  366. because it broke compatibility with Python 2.3.
  367. - The sample configuration output by "echo_supervisord_conf" now correctly
  368. shows the default for "autorestart" as "unexpected". Thanks to
  369. William Dode for noticing it showed the wrong value.
  370. 3.0a7 (2009-05-24)
  371. ------------------
  372. - We now bundle our own patched version of Medusa contributed by Jason
  373. Kirtland to allow Supervisor to run on Python 2.6. This was done
  374. because Python 2.6 introduced backwards incompatible changes to
  375. asyncore and asynchat in the stdlib.
  376. - The console script ``memmon``, introduced in Supervisor 3.0a4, has
  377. been moved to Superlance (http://pypi.python.org/pypi/superlance).
  378. The Superlance package contains other useful monitoring tools designed
  379. to run under Supervisor.
  380. - Supervisorctl now correctly interprets all of the error codes that can
  381. be returned when starting a process. Patch by Francesc Alted.
  382. - New ``stdout_events_enabled`` and ``stderr_events_enabled`` config options
  383. have been added to the ``[program:x]``, ``[fcgi-program:x]``, and
  384. ``[eventlistener:x]`` sections. These enable the emitting of new
  385. PROCESS_LOG events for a program. If unspecified, the default is False.
  386. If enabled for a subprocess, and data is received from the stdout or
  387. stderr of the subprocess while not in the special capture mode used by
  388. PROCESS_COMMUNICATION, an event will be emitted.
  389. Event listeners can subscribe to either PROCESS_LOG_STDOUT or
  390. PROCESS_LOG_STDERR individually, or PROCESS_LOG for both.
  391. - Values for subprocess environment variables specified with environment=
  392. in supervisord.conf can now be optionally quoted, allowing them to
  393. contain commas. Patch by Tim Godfrey.
  394. - Added a new event type, REMOTE_COMMUNICATION, that is emitted by a new
  395. RPC method, supervisor.sendRemoteCommEvent().
  396. - Patch for bug #268 (KeyError on ``here`` expansion for
  397. stdout/stderr_logfile) from David E. Kindred.
  398. - Add ``reread``, ``update``, and ``avail`` commands based on Anders
  399. Quist's ``online_config_reload.diff`` patch. This patch extends
  400. the "add" and "drop" commands with automagical behavior::
  401. In supervisorctl:
  402. supervisor> status
  403. bar RUNNING pid 14864, uptime 18:03:42
  404. baz RUNNING pid 23260, uptime 0:10:16
  405. foo RUNNING pid 14866, uptime 18:03:42
  406. gazonk RUNNING pid 23261, uptime 0:10:16
  407. supervisor> avail
  408. bar in use auto 999:999
  409. baz in use auto 999:999
  410. foo in use auto 999:999
  411. gazonk in use auto 999:999
  412. quux avail auto 999:999
  413. Now we add this to our conf:
  414. [group:zegroup]
  415. programs=baz,gazonk
  416. Then we reread conf:
  417. supervisor> reread
  418. baz: disappeared
  419. gazonk: disappeared
  420. quux: available
  421. zegroup: available
  422. supervisor> avail
  423. bar in use auto 999:999
  424. foo in use auto 999:999
  425. quux avail auto 999:999
  426. zegroup:baz avail auto 999:999
  427. zegroup:gazonk avail auto 999:999
  428. supervisor> status
  429. bar RUNNING pid 14864, uptime 18:04:18
  430. baz RUNNING pid 23260, uptime 0:10:52
  431. foo RUNNING pid 14866, uptime 18:04:18
  432. gazonk RUNNING pid 23261, uptime 0:10:52
  433. The magic make-it-so command:
  434. supervisor> update
  435. baz: stopped
  436. baz: removed process group
  437. gazonk: stopped
  438. gazonk: removed process group
  439. zegroup: added process group
  440. quux: added process group
  441. supervisor> status
  442. bar RUNNING pid 14864, uptime 18:04:43
  443. foo RUNNING pid 14866, uptime 18:04:43
  444. quux RUNNING pid 23561, uptime 0:00:02
  445. zegroup:baz RUNNING pid 23559, uptime 0:00:02
  446. zegroup:gazonk RUNNING pid 23560, uptime 0:00:02
  447. supervisor> avail
  448. bar in use auto 999:999
  449. foo in use auto 999:999
  450. quux in use auto 999:999
  451. zegroup:baz in use auto 999:999
  452. zegroup:gazonk in use auto 999:999
  453. - Fix bug with symptom "KeyError: 'process_name'" when using a logfile name
  454. including documented``process_name`` Python string expansions.
  455. - Tab completions in the supervisorctl shell, and a foreground mode for
  456. Supervisor, implemented as a part of GSoC. The supervisorctl program now
  457. has a ``fg`` command, which makes it possible to supply inputs to a
  458. process, and see its output/error stream in real time.
  459. - Process config reloading implemented by Anders Quist. The
  460. supervisorctl program now has the commands "add" and "drop".
  461. "add <programname>" adds the process group implied by <programname>
  462. in the config file. "drop <programname>" removes the process
  463. group from the running configuration (it must already be stopped).
  464. This makes it possible to add processes to and remove processes from
  465. a running supervisord without restarting the supervisord process.
  466. - Fixed a bug where opening the HTTP servers would fail silently
  467. for socket errors other than errno.EADDRINUSE.
  468. - Thanks to Dave Peticolas, using "reload" against a supervisord
  469. that is running in the background no longer causes supervisord
  470. to crash.
  471. - Configuration options for logfiles now accept mixed case reserved
  472. words (e.g. "AUTO" or "auto") for consistency with other options.
  473. - childutils.eventdata was buggy, it could not deal with carriage returns
  474. in data. See http://www.plope.com/software/collector/257. Thanks
  475. to Ian Bicking.
  476. - Per-process exitcodes= configuration now will not accept exit
  477. codes that are not 8-bit unsigned integers (supervisord will not
  478. start when one of the exit codes is outside the range of 0 - 255).
  479. - Per-process ``directory`` value can now contain expandable values like
  480. ``%(here)s``. (See http://www.plope.com/software/collector/262).
  481. - Accepted patch from Roger Hoover to allow for a new sort of
  482. process group: "fcgi-program". Adding one of these to your
  483. supervisord.conf allows you to control fastcgi programs. FastCGI
  484. programs cannot belong to heterogenous groups.
  485. The configuration for FastCGI programs is the same as regular programs
  486. except an additional "socket" parameter. Substitution happens on the
  487. socket parameter with the ``here`` and ``program_name`` variables::
  488. [fcgi-program:fcgi_test]
  489. ;socket=tcp://localhost:8002
  490. socket=unix:///path/to/fcgi/socket
  491. - Supervisorctl now supports a plugin model for supervisorctl
  492. commands.
  493. - Added the ability to retrieve supervisord's own pid through
  494. supervisor.getPID() on the XML-RPC interface or a new
  495. "pid" command on supervisorctl.
  496. 3.0a6 (2008-04-07)
  497. ------------------
  498. - The RotatingFileLogger had a race condition in its doRollover
  499. method whereby a file might not actually exist despite a call to
  500. os.path.exists on the line above a place where we try to remove
  501. it. We catch the exception now and ignore the missing file.
  502. 3.0a5 (2008-03-13)
  503. ------------------
  504. - Supervisorctl now supports persistent readline history. To
  505. enable, add "history_file = <pathname>" to the ``[supervisorctl]``
  506. section in your supervisord.conf file.
  507. - Multiple commands may now be issued on one supervisorctl command
  508. line, e.g. "restart prog; tail -f prog". Separate commands with a
  509. single semicolon; they will be executed in order as you would
  510. expect.
  511. 3.0a4 (2008-01-30)
  512. ------------------
  513. - 3.0a3 broke Python 2.3 backwards compatibility.
  514. - On Debian Sarge, one user reported that a call to
  515. options.mktempfile would fail with an "[Errno 9] Bad file
  516. descriptor" at supervisord startup time. I was unable to
  517. reproduce this, but we found a workaround that seemed to work for
  518. him and it's included in this release. See
  519. http://www.plope.com/software/collector/252 for more information.
  520. Thanks to William Dode.
  521. - The fault ``ALREADY_TERMINATED`` has been removed. It was only raised by
  522. supervisor.sendProcessStdin(). That method now returns ``NOT_RUNNING``
  523. for parity with the other methods. (Mike Naberezny)
  524. - The fault TIMED_OUT has been removed. It was not used.
  525. - Supervisor now depends on meld3 0.6.4, which does not compile its
  526. C extensions by default, so there is no more need to faff around
  527. with NO_MELD3_EXTENSION_MODULES during installation if you don't
  528. have a C compiler or the Python development libraries on your
  529. system.
  530. - Instead of making a user root around for the sample.conf file,
  531. provide a convenience command "echo_supervisord_conf", which he can
  532. use to echo the sample.conf to his terminal (and redirect to a file
  533. appropriately). This is a new user convenience (especially one who
  534. has no Python experience).
  535. - Added ``numprocs_start`` config option to ``[program:x]`` and
  536. ``[eventlistener:x]`` sections. This is an offset used to compute
  537. the first integer that ``numprocs`` will begin to start from.
  538. Contributed by Antonio Beamud Montero.
  539. - Added capability for ``[include]`` config section to config format.
  540. This section must contain a single key "files", which must name a
  541. space-separated list of file globs that will be included in
  542. supervisor's configuration. Contributed by Ian Bicking.
  543. - Invoking the ``reload`` supervisorctl command could trigger a bug in
  544. supervisord which caused it to crash. See
  545. http://www.plope.com/software/collector/253 . Thanks to William Dode for
  546. a bug report.
  547. - The ``pidproxy`` script was made into a console script.
  548. - The ``password`` value in both the ``[inet_http_server]`` and
  549. ``[unix_http_server]`` sections can now optionally be specified as a SHA
  550. hexdigest instead of as cleartext. Values prefixed with ``{SHA}`` will be
  551. considered SHA hex digests. To encrypt a password to a form suitable for
  552. pasting into the configuration file using Python, do, e.g.::
  553. >>> import sha
  554. >>> '{SHA}' + sha.new('thepassword').hexdigest()
  555. '{SHA}82ab876d1387bfafe46cc1c8a2ef074eae50cb1d'
  556. - The subtypes of the events PROCESS_STATE_CHANGE (and
  557. PROCESS_STATE_CHANGE itself) have been removed, replaced with a
  558. simpler set of PROCESS_STATE subscribable event types.
  559. The new event types are:
  560. PROCESS_STATE_STOPPED
  561. PROCESS_STATE_EXITED
  562. PROCESS_STATE_STARTING
  563. PROCESS_STATE_STOPPING
  564. PROCESS_STATE_BACKOFF
  565. PROCESS_STATE_FATAL
  566. PROCESS_STATE_RUNNING
  567. PROCESS_STATE_UNKNOWN
  568. PROCESS_STATE # abstract
  569. PROCESS_STATE_STARTING replaces:
  570. PROCESS_STATE_CHANGE_STARTING_FROM_STOPPED
  571. PROCESS_STATE_CHANGE_STARTING_FROM_BACKOFF
  572. PROCESS_STATE_CHANGE_STARTING_FROM_EXITED
  573. PROCESS_STATE_CHANGE_STARTING_FROM_FATAL
  574. PROCESS_STATE_RUNNING replaces
  575. PROCESS_STATE_CHANGE_RUNNING_FROM_STARTED
  576. PROCESS_STATE_BACKOFF replaces
  577. PROCESS_STATE_CHANGE_BACKOFF_FROM_STARTING
  578. PROCESS_STATE_STOPPING replaces:
  579. PROCESS_STATE_CHANGE_STOPPING_FROM_RUNNING
  580. PROCESS_STATE_CHANGE_STOPPING_FROM_STARTING
  581. PROCESS_STATE_EXITED replaces
  582. PROCESS_STATE_CHANGE_EXITED_FROM_RUNNING
  583. PROCESS_STATE_STOPPED replaces
  584. PROCESS_STATE_CHANGE_STOPPED_FROM_STOPPING
  585. PROCESS_STATE_FATAL replaces
  586. PROCESS_STATE_CHANGE_FATAL_FROM_BACKOFF
  587. PROCESS_STATE_UNKNOWN replaces PROCESS_STATE_CHANGE_TO_UNKNOWN
  588. PROCESS_STATE replaces PROCESS_STATE_CHANGE
  589. The PROCESS_STATE_CHANGE_EXITED_OR_STOPPED abstract event is gone.
  590. All process state changes have at least "processname",
  591. "groupname", and "from_state" (the name of the previous state) in
  592. their serializations.
  593. PROCESS_STATE_EXITED additionally has "expected" (1 or 0) and "pid"
  594. (the process id) in its serialization.
  595. PROCESS_STATE_RUNNING, PROCESS_STATE_STOPPING,
  596. PROCESS_STATE_STOPPED additionally have "pid" in their
  597. serializations.
  598. PROCESS_STATE_STARTING and PROCESS_STATE_BACKOFF have "tries" in
  599. their serialization (initially "0", bumped +1 each time a start
  600. retry happens).
  601. - Remove documentation from README.txt, point people to
  602. http://supervisord.org/manual/ .
  603. - The eventlistener request/response protocol has changed. OK/FAIL
  604. must now be wrapped in a RESULT envelope so we can use it for more
  605. specialized communications.
  606. Previously, to signify success, an event listener would write the string
  607. ``OK\n`` to its stdout. To signify that the event was seen but couldn't
  608. be handled by the listener and should be rebuffered, an event listener
  609. would write the string ``FAIL\n`` to its stdout.
  610. In the new protocol, the listener must write the string::
  611. RESULT {resultlen}\n{result}
  612. For example, to signify OK::
  613. RESULT 2\nOK
  614. To signify FAIL::
  615. RESULT 4\nFAIL
  616. See the scripts/sample_eventlistener.py script for an example.
  617. - To provide a hook point for custom results returned from event
  618. handlers (see above) the [eventlistener:x] configuration sections
  619. now accept a "result_handler=" parameter,
  620. e.g. "result_handler=supervisor.dispatchers:default_handler" (the
  621. default) or "handler=mypackage:myhandler". The keys are pkgutil
  622. "entry point" specifications (importable Python function names).
  623. Result handlers must be callables which accept two arguments: one
  624. named "event" which represents the event, and the other named
  625. "result", which represents the listener's result. A result
  626. handler either executes successfully or raises an exception. If
  627. it raises a supervisor.dispatchers.RejectEvent exception, the
  628. event will be rebuffered, and the eventhandler will be placed back
  629. into the ACKNOWLEDGED state. If it raises any other exception,
  630. the event handler will be placed in the UNKNOWN state. If it does
  631. not raise any exception, the event is considered successfully
  632. processed. A result handler's return value is ignored. Writing a
  633. result handler is a "in case of emergency break glass" sort of
  634. thing, it is not something to be used for arbitrary business code.
  635. In particular, handlers *must not block* for any appreciable
  636. amount of time.
  637. The standard eventlistener result handler
  638. (supervisor.dispatchers:default_handler) does nothing if it receives an
  639. "OK" and will raise a supervisor.dispatchers.RejectEvent exception if it
  640. receives any other value.
  641. - Supervisord now emits TICK events, which happen every N seconds.
  642. Three types of TICK events are available: TICK_5 (every five
  643. seconds), TICK_60 (every minute), TICK_3600 (every hour). Event
  644. listeners may subscribe to one of these types of events to perform
  645. every-so-often processing. TICK events are subtypes of the EVENT
  646. type.
  647. - Get rid of OSX platform-specific memory monitor and replace with
  648. memmon.py, which works on both Linux and Mac OS. This script is
  649. now a console script named "memmon".
  650. - Allow "web handler" (the handler which receives http requests from
  651. browsers visiting the web UI of supervisor) to deal with POST requests.
  652. - RPC interface methods stopProcess(), stopProcessGroup(), and
  653. stopAllProcesses() now take an optional "wait" argument that defaults
  654. to True for parity with the start methods.
  655. 3.0a3 (2007-10-02)
  656. ------------------
  657. - Supervisorctl now reports a better error message when the main supervisor
  658. XML-RPC namespace is not registered. Thanks to Mike Orr for reporting
  659. this. (Mike Naberezny)
  660. - Create ``scripts`` directory within supervisor package, move
  661. ``pidproxy.py`` there, and place sample event listener and comm event
  662. programs within the directory.
  663. - When an event notification is buffered (either because a listener rejected
  664. it or because all listeners were busy when we attempted to send it
  665. originally), we now rebuffer it in a way that will result in it being
  666. retried earlier than it used to be.
  667. - When a listener process exits (unexpectedly) before transitioning from the
  668. BUSY state, rebuffer the event that was being processed.
  669. - supervisorctl ``tail`` command now accepts a trailing specifier: ``stderr``
  670. or ``stdout``, which respectively, allow a user to tail the stderr or
  671. stdout of the named process. When this specifier is not provided, tail
  672. defaults to stdout.
  673. - supervisor ``clear`` command now clears both stderr and stdout logs for the
  674. given process.
  675. - When a process encounters a spawn error as a result of a failed execve or
  676. when it cannot setuid to a given uid, it now puts this info into the
  677. process' stderr log rather than its stdout log.
  678. - The event listener protocol header now contains the ``server`` identifier,
  679. the ``pool`` that the event emanated from, and the ``poolserial`` as well
  680. as the values it previously contained (version, event name, serial, and
  681. length). The server identifier is taken from the config file options value
  682. ``identifier``, the ``pool`` value is the name of the listener pool that
  683. this event emanates from, and the ``poolserial`` is a serial number
  684. assigned to the event local to the pool that is processing it.
  685. - The event listener protocol header is now a sequence of key-value
  686. pairs rather than a list of positional values. Previously, a
  687. representative header looked like::
  688. SUPERVISOR3.0 PROCESS_COMMUNICATION_STDOUT 30 22\n
  689. Now it looks like::
  690. ver:3.0 server:supervisor serial:21 ...
  691. - Specific event payload serializations have changed. All event
  692. types that deal with processes now include the pid of the process
  693. that the event is describing. In event serialization "header"
  694. values, we've removed the space between the header name and the
  695. value and headers are now separated by a space instead of a line
  696. feed. The names of keys in all event types have had underscores
  697. removed.
  698. - Abandon the use of the Python stdlib ``logging`` module for speed
  699. and cleanliness purposes. We've rolled our own.
  700. - Fix crash on start if AUTO logging is used with a max_bytes of
  701. zero for a process.
  702. - Improve process communication event performance.
  703. - The process config parameters ``stdout_capturefile`` and
  704. ``stderr_capturefile`` are no longer valid. They have been replaced with
  705. the ``stdout_capture_maxbytes`` and ``stderr_capture_maxbytes`` parameters,
  706. which are meant to be suffix-multiplied integers. They both default to
  707. zero. When they are zero, process communication event capturing is not
  708. performed. When either is nonzero, the value represents the maximum number
  709. of bytes that will be captured between process event start and end tags.
  710. This change was to support the fact that we no longer keep capture data in
  711. a separate file, we just use a FIFO in RAM to maintain capture info. For
  712. users whom don't care about process communication events, or whom haven't
  713. changed the defaults for ``stdout_capturefile`` or ``stderr_capturefile``,
  714. they needn't do anything to their configurations to deal with this change.
  715. - Log message levels have been normalized. In particular, process
  716. stdin/stdout is now logged at ``debug`` level rather than at ``trace``
  717. level (``trace`` level is now reserved for output useful typically for
  718. debugging supervisor itself). See "Supervisor Log Levels" in the
  719. documentation for more info.
  720. - When an event is rebuffered (because all listeners are busy or a
  721. listener rejected the event), the rebuffered event is now inserted
  722. in the head of the listener event queue. This doesn't guarantee
  723. event emission in natural ordering, because if a listener rejects
  724. an event or dies while it's processing an event, it can take an
  725. arbitrary amount of time for the event to be rebuffered, and other
  726. events may be processed in the meantime. But if pool listeners
  727. never reject an event or don't die while processing an event, this
  728. guarantees that events will be emitted in the order that they were
  729. received because if all listeners are busy, the rebuffered event
  730. will be tried again "first" on the next go-around.
  731. - Removed EVENT_BUFFER_OVERFLOW event type.
  732. - The supervisorctl xmlrpc proxy can now communicate with
  733. supervisord using a persistent HTTP connection.
  734. - A new module "supervisor.childutils" was added. This module
  735. provides utilities for Python scripts which act as children of
  736. supervisord. Most notably, it contains an API method
  737. "getRPCInterface" allows you to obtain an xmlrpclib ServerProxy
  738. that is willing to communicate with the parent supervisor. It
  739. also contains utility functions that allow for parsing of
  740. supervisor event listener protocol headers. A pair of scripts
  741. (loop_eventgen.py and loop_listener.py) were added to the script
  742. directory that serve as examples about how to use the childutils
  743. module.
  744. - A new envvar is added to child process environments:
  745. SUPERVISOR_SERVER_URL. This contains the server URL for the
  746. supervisord running the child.
  747. - An ``OK`` URL was added at ``/ok.html`` which just returns the string
  748. ``OK`` (can be used for up checks or speed checks via plain-old-HTTP).
  749. - An additional command-line option ``--profile_options`` is accepted
  750. by the supervisord script for developer use::
  751. supervisord -n -c sample.conf --profile_options=cumulative,calls
  752. The values are sort_stats options that can be passed to the
  753. standard Python profiler's PStats sort_stats method.
  754. When you exit supervisor, it will print Python profiling output to
  755. stdout.
  756. - If cElementTree is installed in the Python used to invoke
  757. supervisor, an alternate (faster, by about 2X) XML parser will be
  758. used to parse XML-RPC request bodies. cElementTree was added as
  759. an "extras_require" option in setup.py.
  760. - Added the ability to start, stop, and restart process groups to
  761. supervisorctl. To start a group, use ``start groupname:*``. To start
  762. multiple groups, use ``start groupname1:* groupname2:*``. Equivalent
  763. commands work for "stop" and "restart". You can mix and match short
  764. processnames, fullly-specified group:process names, and groupsplats on the
  765. same line for any of these commands.
  766. - Added ``directory`` option to process config. If you set this
  767. option, supervisor will chdir to this directory before executing
  768. the child program (and thus it will be the child's cwd).
  769. - Added ``umask`` option to process config. If you set this option,
  770. supervisor will set the umask of the child program. (Thanks to
  771. Ian Bicking for the suggestion).
  772. - A pair of scripts ``osx_memmon_eventgen.py`` and `osx_memmon_listener.py``
  773. have been added to the scripts directory. If they are used together as
  774. described in their comments, processes which are consuming "too much"
  775. memory will be restarted. The ``eventgen`` script only works on OSX (my
  776. main development platform) but it should be trivially generalizable to
  777. other operating systems.
  778. - The long form ``--configuration`` (-c) command line option for
  779. supervisord was broken. Reported by Mike Orr. (Mike Naberezny)
  780. - New log level: BLAT (blather). We log all
  781. supervisor-internal-related debugging info here. Thanks to Mike
  782. Orr for the suggestion.
  783. - We now allow supervisor to listen on both a UNIX domain socket and an inet
  784. socket instead of making them mutually exclusive. As a result, the options
  785. "http_port", "http_username", "http_password", "sockchmod" and "sockchown"
  786. are no longer part of the ``[supervisord]`` section configuration. These
  787. have been supplanted by two other sections: ``[unix_http_server]`` and
  788. ``[inet_http_server]``. You'll need to insert one or the other (depending
  789. on whether you want to listen on a UNIX domain socket or a TCP socket
  790. respectively) or both into your supervisord.conf file. These sections have
  791. their own options (where applicable) for port, username, password, chmod,
  792. and chown. See README.txt for more information about these sections.
  793. - All supervisord command-line options related to "http_port",
  794. "http_username", "http_password", "sockchmod" and "sockchown" have
  795. been removed (see above point for rationale).
  796. - The option that *used* to be ``sockchown`` within the ``[supervisord]``
  797. section (and is now named ``chown`` within the ``[unix_http_server]``
  798. section) used to accept a dot-separated user.group value. The separator
  799. now must be a colon ":", e.g. "user:group". Unices allow for dots in
  800. usernames, so this change is a bugfix. Thanks to Ian Bicking for the bug
  801. report.
  802. - If a '-c' option is not specified on the command line, both supervisord and
  803. supervisorctl will search for one in the paths ``./supervisord.conf`` ,
  804. ``./etc/supervisord.conf`` (relative to the current working dir when
  805. supervisord or supervisorctl is invoked) or in ``/etc/supervisord.conf``
  806. (the old default path). These paths are searched in order, and supervisord
  807. and supervisorctl will use the first one found. If none are found,
  808. supervisor will fail to start.
  809. - The Python string expression ``%(here)s`` (referring to the directory in
  810. which the the configuration file was found) can be used within the
  811. following sections/options within the config file::
  812. unix_http_server:file
  813. supervisor:directory
  814. supervisor:logfile
  815. supervisor:pidfile
  816. supervisor:childlogdir
  817. supervisor:environment
  818. program:environment
  819. program:stdout_logfile
  820. program:stderr_logfile
  821. program:process_name
  822. program:command
  823. - The ``--environment`` aka ``-b`` option was removed from the list of
  824. available command-line switches to supervisord (use "A=1 B=2
  825. bin/supervisord" instead).
  826. - If the socket filename (the tail-end of the unix:// URL) was
  827. longer than 64 characters, supervisorctl would fail with an
  828. encoding error at startup.
  829. - The ``identifier`` command-line argument was not functional.
  830. - Fixed http://www.plope.com/software/collector/215 (bad error
  831. message in supervisorctl when program command not found on PATH).
  832. - Some child processes may not have been shut down properly at
  833. supervisor shutdown time.
  834. - Move to ZPL-derived (but not ZPL) license available from
  835. http://www.repoze.org/LICENSE.txt; it's slightly less restrictive
  836. than the ZPL (no servicemark clause).
  837. - Spurious errors related to unclosed files ("bad file descriptor",
  838. typically) were evident at supervisord "reload" time (when using
  839. the "reload" command from supervisorctl).
  840. - We no longer bundle ez_setup to bootstrap setuptools installation.
  841. 3.0a2 (2007-08-24)
  842. ------------------
  843. - Fixed the README.txt example for defining the supervisor RPC
  844. interface in the configuration file. Thanks to Drew Perttula.
  845. - Fixed a bug where process communication events would not have the
  846. proper payload if the payload data was very short.
  847. - when supervisord attempted to kill a process with SIGKILL after
  848. the process was not killed within "stopwaitsecs" using a "normal"
  849. kill signal, supervisord would crash with an improper
  850. AssertionError. Thanks to Calvin Hendryx-Parker.
  851. - On Linux, Supervisor would consume too much CPU in an effective
  852. "busywait" between the time a subprocess exited and the time at
  853. which supervisor was notified of its exit status. Thanks to Drew
  854. Perttula.
  855. - RPC interface behavior change: if the RPC method
  856. "sendProcessStdin" is called against a process that has closed its
  857. stdin file descriptor (e.g. it has done the equivalent of
  858. "sys.stdin.close(); os.close(0)"), we return a NO_FILE fault
  859. instead of accepting the data.
  860. - Changed the semantics of the process configuration ``autorestart``
  861. parameter with respect to processes which move between the RUNNING and
  862. EXITED state. ``autorestart`` was previously a boolean. Now it's a
  863. trinary, accepting one of ``false``, ``unexpected``, or ``true``. If it's
  864. ``false``, a process will never be automatically restarted from the EXITED
  865. state. If it's ``unexpected``, a process that enters the EXITED state will
  866. be automatically restarted if it exited with an exit code that was not
  867. named in the process config's ``exitcodes`` list. If it's ``true``, a
  868. process that enters the EXITED state will be automatically restarted
  869. unconditionally. The default is now ``unexpected`` (it was previously
  870. ``true``). The readdition of this feature is a reversion of the behavior
  871. change note in the changelog notes for 3.0a1 that asserted we never cared
  872. about the process' exit status when determining whether to restart it or
  873. not.
  874. - setup.py develop (and presumably setup.py install) would fail under Python
  875. 2.3.3, because setuptools attempted to import ``splituser`` from urllib2,
  876. and it didn't exist.
  877. - It's now possible to use ``setup.py install`` and ``setup.py develop`` on
  878. systems which do not have a C compiler if you set the environment variable
  879. "NO_MELD3_EXTENSION_MODULES=1" in the shell in which you invoke these
  880. commands (versions of meld3 > 0.6.1 respect this envvar and do not try to
  881. compile optional C extensions when it's set).
  882. - The test suite would fail on Python versions <= 2.3.3 because
  883. the "assertTrue" and "assertFalse" methods of unittest.TestCase
  884. didn't exist in those versions.
  885. - The ``supervisorctl`` and ``supervisord`` wrapper scripts were disused in
  886. favor of using setuptools' ``console_scripts`` entry point settings.
  887. - Documentation files and the sample configuration file are put into
  888. the generated supervisor egg's ``doc`` directory.
  889. - Using the web interface would cause fairly dramatic memory
  890. leakage. We now require a version of meld3 that does not appear
  891. to leak memory from its C extensions (0.6.3).
  892. 3.0a1 (2007-08-16)
  893. ------------------
  894. - Default config file comment documented 10 secs as default for ``startsecs``
  895. value in process config, in reality it was 1 sec. Thanks to Christoph
  896. Zwerschke.
  897. - Make note of subprocess environment behavior in README.txt.
  898. Thanks to Christoph Zwerschke.
  899. - New "strip_ansi" config file option attempts to strip ANSI escape
  900. sequences from logs for smaller/more readable logs (submitted by
  901. Mike Naberezny).
  902. - The XML-RPC method supervisor.getVersion() has been renamed for
  903. clarity to supervisor.getAPIVersion(). The old name is aliased
  904. for compatibility but is deprecated and will be removed in a
  905. future version (Mike Naberezny).
  906. - Improved web interface styling (Mike Naberezny, Derek DeVries)
  907. - The XML-RPC method supervisor.startProcess() now checks that
  908. the file exists and is executable (Mike Naberezny).
  909. - Two environment variables, "SUPERVISOR_PROCESS_NAME" and
  910. "SUPERVISOR_PROCESS_GROUP" are set in the environment of child
  911. processes, representing the name of the process and group in
  912. supervisor's configuration.
  913. - Process state map change: a process may now move directly from the
  914. STARTING state to the STOPPING state (as a result of a stop
  915. request).
  916. - Behavior change: if ``autorestart`` is true, even if a process exits with
  917. an "expected" exit code, it will still be restarted. In the immediately
  918. prior release of supervisor, this was true anyway, and no one complained,
  919. so we're going to consider that the "officially correct" behavior from now
  920. on.
  921. - Supervisor now logs subprocess stdout and stderr independently.
  922. The old program config keys "logfile", "logfile_backups" and
  923. "logfile_maxbytes" are superseded by "stdout_logfile",
  924. "stdout_logfile_backups", and "stdout_logfile_maxbytes". Added
  925. keys include "stderr_logfile", "stderr_logfile_backups", and
  926. "stderr_logfile_maxbytes". An additional "redirect_stderr" key is
  927. used to cause program stderr output to be sent to its stdin
  928. channel. The keys "log_stderr" and "log_stdout" have been
  929. removed.
  930. - ``[program:x]`` config file sections now represent "homgeneous process
  931. groups" instead of single processes. A "numprocs" key in the section
  932. represents the number of processes that are in the group. A "process_name"
  933. key in the section allows composition of the each process' name within the
  934. homogeneous group.
  935. - A new kind of config file section, ``[group:x]`` now exists, allowing users
  936. to group heterogeneous processes together into a process group that can be
  937. controlled as a unit from a client.
  938. - Supervisord now emits "events" at certain points in its normal
  939. operation. These events include supervisor state change events,
  940. process state change events, and "process communication events".
  941. - A new kind of config file section ``[eventlistener:x]`` now exists. Each
  942. section represents an "event listener pool", which is a special kind of
  943. homogeneous process group. Each process in the pool is meant to receive
  944. supervisor "events" via its stdin and perform some notification (e.g. send
  945. a mail, log, make an http request, etc.)
  946. - Supervisord can now capture data between special tokens in
  947. subprocess stdout/stderr output and emit a "process communications
  948. event" as a result.
  949. - Supervisor's XML-RPC interface may be extended arbitrarily by programmers.
  950. Additional top-level namespace XML-RPC interfaces can be added using the
  951. ``[rpcinterface:foo]`` declaration in the configuration file.
  952. - New ``supervisor``-namespace XML-RPC methods have been added:
  953. getAPIVersion (returns the XML-RPC API version, the older
  954. "getVersion" is now deprecated), "startProcessGroup" (starts all
  955. processes in a supervisor process group), "stopProcessGroup"
  956. (stops all processes in a supervisor process group), and
  957. "sendProcessStdin" (sends data to a process' stdin file
  958. descriptor).
  959. - ``supervisor``-namespace XML-RPC methods which previously accepted
  960. ony a process name as "name" (startProcess, stopProcess,
  961. getProcessInfo, readProcessLog, tailProcessLog, and
  962. clearProcessLog) now accept a "name" which may contain both the
  963. process name and the process group name in the form
  964. ``groupname:procname``. For backwards compatibility purposes,
  965. "simple" names will also be accepted but will be expanded
  966. internally (e.g. if "foo" is sent as a name, it will be expanded
  967. to "foo:foo", representing the foo process within the foo process
  968. group).
  969. - 2.X versions of supervisorctl will work against supervisor 3.0
  970. servers in a degraded fashion, but 3.X versions of supervisorctl
  971. will not work at all against supervisor 2.X servers.
  972. 2.2b1 (2007-03-31)
  973. ------------------
  974. - Individual program configuration sections can now specify an
  975. environment.
  976. - Added a 'version' command to supervisorctl. This returns the
  977. version of the supervisor2 package which the remote supervisord
  978. process is using.
  979. 2.1 (2007-03-17)
  980. ----------------
  981. - When supervisord was invoked more than once, and its configuration
  982. was set up to use a UNIX domain socket as the HTTP server, the
  983. socket file would be erased in error. The symptom of this was
  984. that a subsequent invocation of supervisorctl could not find the
  985. socket file, so the process could not be controlled (it and all of
  986. its subprocesses would need to be killed by hand).
  987. - Close subprocess file descriptors properly when a subprocess exits
  988. or otherwise dies. This should result in fewer "too many open
  989. files to spawn foo" messages when supervisor is left up for long
  990. periods of time.
  991. - When a process was not killable with a "normal" signal at shutdown
  992. time, too many "INFO: waiting for x to die" messages would be sent
  993. to the log until we ended up killing the process with a SIGKILL.
  994. Now a maximum of one every three seconds is sent up until SIGKILL
  995. time. Thanks to Ian Bicking.
  996. - Add an assertion: we never want to try to marshal None to XML-RPC
  997. callers. Issue 223 in the collector from vgatto indicates that
  998. somehow a supervisor XML-RPC method is returning None (which
  999. should never happen), but I cannot identify how. Maybe the
  1000. assertion will give us more clues if it happens again.
  1001. - Supervisor would crash when run under Python 2.5 because the
  1002. xmlrpclib.Transport class in Python 2.5 changed in a
  1003. backward-incompatible way. Thanks to Eric Westra for the bug
  1004. report and a fix.
  1005. - Tests now pass under Python 2.5.
  1006. - Better supervisorctl reporting on stop requests that have a FAILED
  1007. status.
  1008. - Removed duplicated code (readLog/readMainLog), thanks to Mike
  1009. Naberezny.
  1010. - Added tailProcessLog command to the XML-RPC API. It provides a
  1011. more efficient way to tail logs than readProcessLog(). Use
  1012. readProcessLog() to read chunks and tailProcessLog() to tail.
  1013. (thanks to Mike Naberezny).
  1014. 2.1b1 (2006-08-30)
  1015. ------------------
  1016. - "supervisord -h" and "supervisorctl -h" did not work (traceback
  1017. instead of showing help view (thanks to Damjan from Macedonia for
  1018. the bug report).
  1019. - Processes which started successfully after failing to start
  1020. initially are no longer reported in BACKOFF state once they are
  1021. started successfully (thanks to Damjan from Macdonia for the bug
  1022. report).
  1023. - Add new 'maintail' command to supervisorctl shell, which allows
  1024. you to tail the 'main' supervisor log. This uses a new
  1025. readMainLog xmlrpc API.
  1026. - Various process-state-transition related changes, all internal.
  1027. README.txt updated with new state transition map.
  1028. - startProcess and startAllProcesses xmlrpc APIs changed: instead of
  1029. accepting a timeout integer, these accept a wait boolean (timeout
  1030. is implied by process' "startsecs" configuration). If wait is
  1031. False, do not wait for startsecs.
  1032. Known issues:
  1033. - Code does not match state transition map. Processes which are
  1034. configured as autorestarting which start "successfully" but
  1035. subsequently die after 'startsecs' go through the transitions
  1036. RUNNING -> BACKOFF -> STARTING instead of the correct transitions
  1037. RUNNING -> EXITED -> STARTING. This has no real negative effect,
  1038. but should be fixed for correctness.
  1039. 2.0 (2006-08-30)
  1040. ----------------
  1041. - pidfile written in daemon mode had incorrect pid.
  1042. - supervisorctl: tail (non -f) did not pass through proper error
  1043. messages when supplied by the server.
  1044. - Log signal name used to kill processes at debug level.
  1045. - supervisorctl "tail -f" didn't work with supervisorctl sections
  1046. configured with an absolute unix:// URL
  1047. - New "environment" config file option allows you to add environment
  1048. variable values to supervisord environment from config file.
  1049. 2.0b1 (2006-07-12)
  1050. ------------------
  1051. - Fundamental rewrite based on 1.0.7, use distutils (only) for
  1052. installation, use ConfigParser rather than ZConfig, use HTTP for
  1053. wire protocol, web interface, less lies in supervisorctl.
  1054. 1.0.7 (2006-07-11)
  1055. ------------------
  1056. - Don't log a waitpid error if the error value is "no children".
  1057. - Use select() against child file descriptor pipes and bump up select
  1058. timeout appropriately.
  1059. 1.0.6 (2005-11-20)
  1060. ------------------
  1061. - Various tweaks to make run more effectively on Mac OS X
  1062. (including fixing tests to run there, no more "error reading
  1063. from fd XXX" in logtail output, reduced disk/CPU usage as a
  1064. result of not writing to log file unnecessarily on Mac OS).
  1065. 1.0.5 (2004-07-29)
  1066. ------------------
  1067. - Short description: In previous releases, managed programs that
  1068. created voluminous stdout/stderr output could run more slowly
  1069. than usual when invoked under supervisor, now they do not.
  1070. Long description: The supervisord manages child output by
  1071. polling pipes related to child process stderr/stdout. Polling
  1072. operations are performed in the mainloop, which also performs a
  1073. 'select' on the filedescriptor(s) related to client/server
  1074. operations. In prior releases, the select timeout was set to 2
  1075. seconds. This release changes the timeout to 1/10th of a second
  1076. in order to keep up with client stdout/stderr output.
  1077. Gory description: On Linux, at least, there is a pipe buffer
  1078. size fixed by the kernel of somewhere between 512 - 4096 bytes;
  1079. when a child process writes enough data to fill the pipe buffer,
  1080. it will block on further stdout/stderr output until supervisord
  1081. comes along and clears out the buffer by reading bytes from the
  1082. pipe within the mainloop. We now clear these buffers much more
  1083. quickly than we did before due to the increased frequency of
  1084. buffer reads in the mainloop; the timeout value of 1/10th of a
  1085. second seems to be fast enough to clear out the buffers of child
  1086. process pipes when managing programs on even a very fast system
  1087. while still enabling the supervisord process to be in a sleeping
  1088. state for most of the time.
  1089. 1.0.4 or "Alpha 4" (2004-06-30)
  1090. -------------------------------
  1091. - Forgot to update version tag in configure.py, so the supervisor version
  1092. in a3 is listed as "1.0.1", where it should be "1.0.3". a4 will be
  1093. listed as "1.0.4'.
  1094. - Instead of preventing a process from starting if setuid() can't
  1095. be called (if supervisord is run as nonroot, for example), just log
  1096. the error and proceed.
  1097. 1.0.3 or "Alpha 3" (2004-05-26)
  1098. -------------------------------
  1099. - The daemon could chew up a lot of CPU time trying to select()
  1100. on real files (I didn't know select() failed to block when a file
  1101. is at EOF). Fixed by polling instead of using select().
  1102. - Processes could "leak" and become zombies due to a bug in
  1103. reaping dead children.
  1104. - supervisord now defaults to daemonizing itself.
  1105. - 'daemon' config file option and -d/--daemon command-line option
  1106. removed from supervisord acceptable options. In place of these
  1107. options, we now have a 'nodaemon' config file option and a
  1108. -n/--nodaemon command-line option.
  1109. - logtail now works.
  1110. - pidproxy changed slightly to reap children synchronously.
  1111. - in alpha2 changelist, supervisord was reported to have a
  1112. "noauth" command-line option. This was not accurate. The way
  1113. to turn off auth on the server is to disinclude the "passwdfile"
  1114. config file option from the server config file. The client
  1115. however does indeed still have a noauth option, which prevents
  1116. it from ever attempting to send authentication credentials to
  1117. servers.
  1118. - ZPL license added for ZConfig to LICENSE.txt
  1119. 1.0.2 or "Alpha 2" (Unreleased)
  1120. -------------------------------
  1121. - supervisorctl and supervisord no longer need to run on the same machine
  1122. due to the addition of internet socket support.
  1123. - supervisorctl and supervisord no longer share a common configuration
  1124. file format.
  1125. - supervisorctl now uses a persistent connection to supervisord
  1126. (as opposed to creating a fresh connection for each command).
  1127. - SRP (Secure Remote Password) authentication is now a supported form
  1128. of access control for supervisord. In supervisorctl interactive mode,
  1129. by default, users will be asked for credentials when attempting to
  1130. talk to a supervisord that requires SRP authentication.
  1131. - supervisord has a new command-line option and configuration file
  1132. option for specifying "noauth" mode, which signifies that it
  1133. should not require authentication from clients.
  1134. - supervisorctl has a new command-line option and configuration
  1135. option for specifying "noauth" mode, which signifies that it
  1136. should never attempt to send authentication info to servers.
  1137. - supervisorctl has new commands: open: opens a connection to a new
  1138. supervisord; close: closes the current connection.
  1139. - supervisorctl's "logtail" command now retrieves log data from
  1140. supervisord's log file remotely (as opposed to reading it
  1141. directly from a common filesystem). It also no longer emulates
  1142. "tail -f", it just returns <n> lines of the server's log file.
  1143. - The supervisord/supervisorctl wire protocol now has protocol versioning
  1144. and is documented in "protocol.txt".
  1145. - "configfile" command-line override -C changed to -c
  1146. - top-level section name for supervisor schema changed to 'supervisord'
  1147. from 'supervisor'
  1148. - Added 'pidproxy' shim program.
  1149. Known issues in alpha 2:
  1150. - If supervisorctl loses a connection to a supervisord or if the
  1151. remote supervisord crashes or shuts down unexpectedly, it is
  1152. possible that any supervisorctl talking to it will "hang"
  1153. indefinitely waiting for data. Pressing Ctrl-C will allow you
  1154. to restart supervisorctl.
  1155. - Only one supervisorctl process may talk to a given supervisord
  1156. process at a time. If two supervisorctl processes attempt to talk
  1157. to the same supervisord process, one will "win" and the other will
  1158. be disconnected.
  1159. - Sometimes if a pidproxy is used to start a program, the pidproxy
  1160. program itself will "leak".
  1161. 1.0.0 or "Alpha 1" (Unreleased)
  1162. -------------------------------
  1163. Initial release.