CHANGES.txt 66 KB

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