NEWS 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. == Version 0.11.0
  2. This is a second Alpha release, issued as a follow-up to the previous Alpha
  3. release. It contains some minor bugfixes and a number of other improvements
  4. (all detailed below).
  5. Important: the default system socket location has changed. If version 0.11 of
  6. shutdown, halt etc are installed, they may not be able to communicate with the
  7. already-running (v0.10.0 or prior) dinit daemon. In this case, to shut the
  8. system down, use:
  9. dinitctl -p /dev/dinitctl shutdown
  10. Important: the "no-sigterm" option has been removed. To specify that no
  11. SIGTERM signal should be sent to a process to stop it, specify a different
  12. signal (or "none") via the "term-signal" setting. It is no longer possible to
  13. have both SIGTERM and an additional signal sent, but the settings should be
  14. less confusing.
  15. Changes:
  16. * dinit and dinitctl now support --version command line argument.
  17. * Improved diagnostic message if a service description file exists but
  18. can't be opened.
  19. * Default system socket location has changed from /dev/dinitctl to
  20. /run/dinitctl (see note above).
  21. * Active status is indicated in "dinitctl list" output. Square brackets
  22. indicate a service is marked active (i.e. it has been explicitly started)
  23. and curly brackets indicate a service that has started due to being the
  24. dependent of an active service.
  25. * The "dinitcheck" utility now performs a number of additional checks.
  26. * Better feedback is provided for various "dinitctl" commands. The affected
  27. service name is reported for any status update.
  28. * Fixed bug processing rlimit settings.
  29. * Fixed issue with interpreting unwanted command line parameters passed from
  30. linux kernel as service names.
  31. == Version 0.10.0
  32. This release is a major step towards a version 1.0 release. It should be
  33. considered an Alpha release; core functionality is complete but some
  34. ancillary functionality is still unimplemented. It is believed to be of
  35. good quality but bugs may be present.
  36. * When not running as system init, dinit will now fail to start if the control
  37. socket cannot be opened. In particular this should prevent accidentally
  38. starting multiple instances of dinit (and all services).
  39. * Services of type bgproc will no longer load if the pid-file setting is not
  40. supplied. Previously such services could be started, but stopping them would
  41. leave the process running.
  42. * Re-worked manual service stop (via command). Previously, manually stopping
  43. a service would inhibit automatic restart of the service, but not of its
  44. dependents; this meant that the service might still restart due to a
  45. dependent. In this version, manually stopping a service inhibits restart
  46. of the service and all dependents (note that the --force option is required,
  47. as previously, in order to stop a service which has active dependents).
  48. * Re-worked soft dependency handling slightly. A dependency now (re-)attaches
  49. to its dependent if it starts (or starts again) while the dependent is
  50. started. This leads to overall more consistent behaviour (and is simpler
  51. to implement properly).
  52. * Re-worked pinning. A service that is pinned stopped can now prevent dependents
  53. from starting (the behaviour is the same as if the service failed to start).
  54. * Support start-timeout setting for process services. Previously this setting
  55. was ignored for such services. It is mostly useful for services which also
  56. have readiness notification configured (since otherwise, a process service is
  57. considered started as soon as it begins execution).
  58. * If a process-based service fails to restart, restart of dependent services
  59. will be inhibited. This should prevent repeated attempts to launch a failing
  60. process caused by a restarting dependent service.
  61. * Fixed some cases where service target state would not be set correctly. This
  62. could cause output of "dinitctl list" to incorrectly show that a service would
  63. restart after stopping, when in fact it would remain stopped.
  64. * Fixed various corner-case bugs in service management.
  65. == Version 0.9.1
  66. This is a bug-fix release.
  67. * Fix a service getting stuck in the "stopping" state, if a dependent is
  68. set to auto-restart ("restart = true").
  69. == Version 0.9.0
  70. This release includes some new functionality and a rework of the chain-load
  71. mechanism.
  72. * The service specified via the "chain-to" setting will now only be started
  73. if the initiating service completes successfully, i.e. if it terminates
  74. normally (with an exit code of 0) and only if it is not manually stopped.
  75. * New option "--container" (-o) inhibits system management functions (such
  76. as machine shutdown/restart) that are normally enabled when dinit runs as
  77. process ID 1. A complementary "--system-mgr" (-m) option enables system
  78. management (even when not running as PID 1).
  79. * Fixed pinned-started services stopping when released by a dependent
  80. service, instead of remaining in the started state, and some other bugs
  81. related to pinning. Some issues may remain to be fixed in a later release.
  82. == Version 0.8.2
  83. This is a bug-fix release.
  84. * Fixed group not being set correctly when "run-as" or "socket-uid" were used.
  85. * Fixed "dinitctl rm-dep" command
  86. * Fixed bug preventing shutdown when auto-restart services were configured
  87. * Fixed smooth recovery of bgprocess services
  88. == Version 0.8.1
  89. This is a bug-fix release.
  90. * Fixed crash on service load error.
  91. * Fixed an unchecked allocation leading to possible unexpected termination.
  92. * Fixed a slow memory leak (in the bundled Dasynq library).
  93. * Fixed --help option for "dinitcheck" not working.
  94. * Fixed badly formatted error message from process launch failure.
  95. * Fixed issue where log file would not always be flushed on exit.
  96. * Fixed "dinitcheck" crashing if service description could not be found.
  97. == Version 0.8.0
  98. This release includes major usability features.
  99. * New command "dinitcheck" checks service descriptions for errors (without attempting to load
  100. or start the service). Checks the named service(s) and any dependencies.
  101. * Service descriptions can now be reloaded, using "dinitctl reload <service-name>". This works
  102. for services which are started, with some restrictions, and for services which are stopped,
  103. and allows dependencies to be altered.
  104. * dinitctl now defaults to the system process socket location when run as root. This means that
  105. using '-s' is no longer necessary (it is still supported for backwards compatibility). A new
  106. '-u' option can be used to communicate with the user daemon, if there is one.
  107. == Version 0.7.0
  108. This release adds a minor feature, and includes a re-work of some base functionality
  109. (which should not affect most use cases).
  110. * dinitctl "restart" command added. Re-starts an already-running service without affecting
  111. activation or dependency links.
  112. * dinitctl "stop" command now requires a `--force` option if dependents of the specified
  113. service would also need to stop.
  114. * dinitctl "wake" command now reconnects dependency links from dependents of the specified
  115. service, and can only be used if at least one such dependent is started.
  116. == Version 0.6.1:
  117. This is a bug-fix release with several minor fixes:
  118. * Resource limits were not properly being set.
  119. * Prevent early termination when standard input is closed or set to a device which cannot
  120. be watched for input.
  121. * Control protocol fix, possibly not affecting any real usage.
  122. == Version 0.6.0:
  123. This release adds a number of minor features:
  124. * Better behaviour when boot fails. User can choose an action from reboot, resume boot process,
  125. start the "recovery" service, or power-off.
  126. * New service settings for limiting resources at the process level: "rlimit-nofile",
  127. "rlimit-core", "rlimit-data", "rlimit-addrspace". Both hard and soft limits can be set.
  128. See dinit-service(5) for details.
  129. * New "env-file" setting allows per-setting environment to be specified via a file. The file
  130. is re-read each time the service process is started.
  131. * Added a "--quiet" option to suppress console output from Dinit.
  132. * Dinit when run as a user daemon no longer logs via syslog. Logging to file can still be
  133. enabled via the "-l"/"--log-file" option.
  134. * Added a "--socket-path"/"-p" option to dinitctl, to specify the socket path for communication
  135. with the dinit daemon.
  136. A number of minor bugfixes and other improvements are also implemented. An integration test
  137. framework has been added with a small number of tests, to complement the existing unit tests.
  138. == Version 0.5.2:
  139. This is a bug-fix release for several minor issues which have been found in the preceding
  140. release (0.5.1).
  141. * Fix logging failure after log buffer becomes full.
  142. * Fix readiness-fd notification not immediately updating service states.
  143. * Fix use of old settings in sample configuration for Linux.
  144. * Re-create control socket file node if it "disappears". Should solve issues if root filesystem
  145. is mounted read-write on boot.
  146. * Fix potential issue with service launch failure for services using a fixed notification fd.
  147. == Version 0.5.1:
  148. This is a bug-fix release for several issues of varying severity which have been found in the
  149. preceding release.
  150. * Improved logging behaviour when a service runs "on console" for a very short time.
  151. * Fix for crash due to SIGALRM on OpenBSD.
  152. * Fixes for compiling with Musl C library.
  153. * Fix dinitctl "enable" and "disable" commands when path to service directory is absolute.
  154. * "termsignal" setting renamed "term-signal" and now supports "KILL" signal. "termsignal"
  155. is still supported for compatibility with existing service descriptions.
  156. * Other minor fixes.
  157. == Version 0.5.0:
  158. This version adds S6-compatible readiness notification support, and adds support for updating
  159. the "utmp" database when services start/stop (this functionality should be avoided if possible
  160. since the "utmp" database is mostly an historical artifact, and system support is often prone
  161. to issues which allow unprivileged users to prevent updates and deny or delay logins; however,
  162. utilities such as "who" may depend on the database being updated appropriately).
  163. Other changes:
  164. * Add "-u" command line option to force running dinit as a user instance.
  165. * Add a "chain-to" service property to better support recovery services.
  166. * Add a "shares-console" service option to allow running services "on the console" without having
  167. them own it exclusively.
  168. * Add "inittab-id" and "inittab-line" service settings for utmp support.
  169. * Minor bugfixes.
  170. == Version 0.4.0:
  171. This version focuses on being more "distribution friendly". It adds mechanisms to add and remove
  172. dependencies, either temporarily or persistently, between services without manual editing of
  173. service description files.
  174. Changes:
  175. * A new service description directive, "waits-for.d", allows specifying a directory for which the
  176. contents (filenames) are read as dependencies. This provides a convenient way to add and remove
  177. dependencies to service descriptions without editing the textual service description file.
  178. * dinitctl has new commands, "add-dep" and "rm-dep", to add or remove a dependency between
  179. services. The dependency is not persisted and won't survive a restart. Check the man page for
  180. details.
  181. * dinitctl has new commands, "enable" and "disable". These permanently enable/disable
  182. a service for some target ("boot" by default) by creating/destroying a symbolic link
  183. in the waits-for.d directory specified in the service description (and create/remove
  184. waits-for dependency dynamically). Check the man page for details.
  185. * A code style guide has been added (in the "doc" directory).
  186. * More tests, minor bugfixes.