CHANGES.txt 60 KB

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