CHANGES.txt 56 KB

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