CHANGES.txt 60 KB

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