NEWS 15 KB

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