NEWS 14 KB

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