CHANGES.txt 60 KB

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