NEWS 17 KB

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