2
0

NEWS 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. == Version 0.19.3(?)
  2. TBA
  3. == Version 0.19.2
  4. This beta release contains minor bugfixes compared to the prior release. It does not contain
  5. various feature changes that be released in version 0.20.0 in due course.
  6. Thanks to current sponsors: Paweł Zmarzły (pzmarzly), Wesley Moore (wezm),
  7. M. Herdiansyah (konimex), Coleman McFarland (dontlaugh), q66, saolof, and private sponsors.
  8. Fixes:
  9. * Fix bad formatting of line number in error message when a service fails to load (Jami Kettunen).
  10. * Fix endianness issue leading to errors from dinitctl for some commands on big-endian systems
  11. (q66).
  12. * Fix dinitcheck not being able to find dependency directories ("waits-for.d" etc) if specified
  13. via relative path.
  14. * Dependency directories (as specified by "waits-for.d" and similar) are, if relative, now
  15. resolved against the file containing the setting, rather than the base service description
  16. file. It is recommended to use absolute paths for all other applicable settings.
  17. == Version 0.19.1 (beta release #5)
  18. This is a fifth beta release, containing important bugfixes compared to the prior release.
  19. Thanks again to current sponsors: Paweł Zmarzły (pzmarzly), Wesley Moore (wezm),
  20. M. Herdiansyah (konimex), q66, saolof, and private sponsors.
  21. With an influx of new features being contributed, a follow-up release is planned. Dinit 0.19.0 was
  22. not the final beta after all, and neither will be 0.19.1.
  23. Fixes:
  24. * Resolve issue causing service restarts to hang (affected bgprocess and internal services).
  25. * Fix handling of "depends-ms.d" service setting (q66).
  26. * Bump protocol version reported by dinit so that full exit status of processes is actually
  27. reported (on OSes that support it) (q66).
  28. * dinitcheck warns about non-absolute executable paths in service descriptions (Yao Zi).
  29. == Version 0.19.0 (beta release #4)
  30. This is a fourth beta release, with bugfixes and some significant feature additions compared to
  31. the previous release. In particular, the new features focus on the ability for user customisation
  32. of distribution-provided services.
  33. In the absence of major bugs, the next release is expected to be 1.0.
  34. Thanks to current sponsors: Paweł Zmarzły (pzmarzly), Wesley Moore (wezm), M. Herdiansyah (konimex), q66, saolof
  35. New features:
  36. * A logo for Dinit was contributed by Yakui420.
  37. * Service descriptions can now include other files, via the meta-commands "@include" and
  38. "@include-opt" (useful for user customisation of services).
  39. * Some settings, including "command" and "stop-command", may now be appended to (useful
  40. for user customisation of services).
  41. * Added ability to restart process-based services only "on-failure" (Mobin Aydinfar).
  42. * Service settings may span multiple lines, by "escaping" the line ending with a backslash
  43. (Carlos Eduardo).
  44. * Default system-wide locations are used for user services, in addition to the user-specific
  45. directory: /etc/dinit.d/user, /usr/local/lib/dinit.d/user, and /usr/lib/dinit.d/user
  46. (realroot2185).
  47. * "dinitctl add-dep" now takes "need" as a dependency type in place of "regular". The latter is
  48. still supported as an alias, for the time being (Locria Cyber).
  49. * New "depends-on.d" and "depends-ms.d" service settings, as per "waits-for.d" but for other
  50. dependency types.
  51. * New "soft-reboot" utility to force restarting system services without full reboot (Yukari
  52. Chiba). Note that this requires appropriately configured services. It is most likely to be
  53. useful in containers.
  54. Changes:
  55. * For service restart via "dinitctl restart", display both "stopped" and "started" status
  56. instead of only "started".
  57. * For some service settings, where the current setting is not actually overwritten by
  58. "re-assigning" the setting, the documentation now suggests using ":" to separate the setting
  59. name and value (rather than "="). This has long been supported, but was not documented
  60. previously.
  61. Fixes:
  62. * shutdown utility correctly changes behaviour according to name (reboot, etc) when built with a
  63. name prefix (Mobin Aydinfar).
  64. * fixes to control connection processing on error conditions (Mobin Aydinfar).
  65. * fixed rare dinitctl hang after enabling a service (Mobin Aydinfar).
  66. * fixed bug detecting invalid process id from pid file for "bgprocess" services.
  67. * full ("int"-sized) exit status of processes now reported, on operating systems that support
  68. this (including FreeBSD, and excluding Linux).
  69. Build fixes:
  70. * Improvements to configure script, fixing some failure cases (Mobin Aydinfar).
  71. * Fixes to meson build: build "poweroff" binary, install "poweroff", "reboot" and "halt" as
  72. symbolic links as per Makefile build (M. Herdiansyah, aka konimex).
  73. * Fixed FreeBSD makefile-based build.
  74. Various other changes:
  75. * Reworked integration tests, CI improvements (Mobin Aydinfar), documentation improvements,
  76. FreeBSD integration (see contrib/) (Locria Cyber).
  77. == Version 0.18.0 (beta release #3)
  78. This is a beta release focused on improving user experience, which also introduces some minor new
  79. features.
  80. Thanks to current sponsors: Paweł Zmarzły, Wesley Moore, brazeon, q66
  81. Changes:
  82. * For user instances, if the XDG_CONFIG_HOME environment is set, dinit now looks for services in
  83. $XDG_CONFIG_HOME/dinit.d/ in addition to $HOME/.config/dinit.d (if they are different paths).
  84. Implemented by Oliver Amann.
  85. Note that Dinit does not, and most likely never will, fully support the (flawed) XDG Base
  86. Directory Specification.
  87. New features:
  88. * dinitcheck now supports an "online" mode of operation (--online, -n) in which it will query the
  89. service directories and service manager environment from a running dinit instance.
  90. * In dinit-monitor: support reporting initial service status, and using alternative
  91. (user-supplied) wording for status texts. Thanks to James Knippes (helican).
  92. * For service descriptions, a new form of variable expansion is available. When written as
  93. "$/NAME" (or "$/{NAME}") the variable value undergoes word splitting and whitespace
  94. collapse. This is convenient for allowing optional command line arguments to be specified via
  95. the environment, for example.
  96. Fixes:
  97. * Fix a latent control protocol processing issue (does not affect dinitctl).
  98. * Various minor improvements to error messages, designed to provide a better end-user experience.
  99. * Fixes to minor build issues in Meson build (Mobin Aydinfar).
  100. == Version 0.17.1 (beta release #2)
  101. This is a 2nd beta release to follow up from 0.17.0. The changes are mostly minor; they include
  102. some bug fixes, and some behavioural changes, that are listed below; there are also new options
  103. for controlling logging.
  104. New features:
  105. * The console log level, and primary log facility (syslog or logfile) log level, can now be
  106. specified via the new "--console-level" and "--log-level" options. See the documentation
  107. in the dinit(8) man page.
  108. Changes:
  109. * The log file is opened immediately when starting even as a system manager, if possible. This
  110. can make it easier to debug boot issues.
  111. * The working directory for a service is now the directory containing the service description.
  112. This can simplify specifying configuration files/script locations etc. Implemented by
  113. q66.
  114. * The env-file (environment) path for a service is now relative to the service directory
  115. containing the service description. Implemented by q66.
  116. * Failure to open the env-file (environment) specified for a service is now treated as a hard
  117. error (and will prevent a service starting). Implemented by Mobin Aydinfar.
  118. Fixes:
  119. * A service that restarted too often, too quickly but which was a dependency of another service
  120. also set to restart did not trigger the restart limit check; this has been fixed.
  121. * Process services with the smooth-recovery option and with readiness notification did not check
  122. that readiness notification was received after a smooth restart.
  123. * Don't report ECONNRESET errors in control connections. These indicate that the client closed
  124. the connection (possibly by terminating) and do not need to be reported. This prevents a
  125. spurious warning on shutdown.
  126. * Give an error when a service is specified as its own output consumer (avoids crash).
  127. Thanks to Mobin Aydinfar.
  128. * A better effort to make the symlink created during a "dinitctl enable" operation actually point
  129. to the enabled service. (This has no effect on operation).
  130. * Various command line switches which require an additional argument (eg -d, -l) now check that
  131. the argument supplied is now empty.
  132. * configure script improvements/fixes by Mobin Aydinfar, and by Roze061
  133. == Version 0.17.0 (beta release #1)
  134. Thank you to several new sponsors, as well as existing sponsors, for supporting this release.
  135. Current sponsors include github users: brentfrow, brazeon, and q66 (founder of Chimera Linux).
  136. Development of Dinit has also received financial support from Artix Linux.
  137. I am grateful for all the support, both financial and otherwise, that has been received.
  138. Special thanks to Mobin Aydinfar, who has taken on secondary maintainer duties in the lead-up to
  139. this release, including many valuable contributions to getting CI infrastructure up-and-running.
  140. New features:
  141. * A "log-type" service setting allows for control over how a service output is processed. A new
  142. "buffer" type allows capturing service output to an in-memory buffer; this may be useful for
  143. service started early, before any logging daemon is available. The buffer contents can be
  144. inspected via a new dinitctl subcommand, "catlog". See dinit-service(5) and dinitctl(8). Other
  145. log-type settings are "none", "file" (log to file as in previous versions) and "pipe" which
  146. allows piping output to another (process) service - read on for details.
  147. * Output from a service process can now be chained to another process (in another service).
  148. This allows one service to act as a logging agent for another, for example. The consumer
  149. service need not be started at the same time as the producer process; the pipe between them can
  150. be created early if needed, and will persist if either end dies (so restarting a logging agent
  151. without losing log messages should be possible in theory). The "consumer-of" service setting,
  152. specified in the consumer, creates the connection between the services; the producer must have
  153. log-type of "pipe".
  154. * New "triggered" service type, similar to "internal" except that it requires an external
  155. trigger before it will start (start of a triggered service is delayed until the external
  156. trigger is received). One potential use is to start services after hardware device nodes become
  157. available (eg, start dhcp client on a network interface once it is available).
  158. * New "dinictl" subcommand, "signal", to send a signal to a service process. See dinitctl(8).
  159. Implemented by James Knippes and Mobin Aydinfar.
  160. * New "kill-all-on-stop" service option will cause dinit to kill all (other) processes just
  161. before stopping the service. This can be used to ensure a cleaner system state and that
  162. filesystems can be unmounted (for example). Use with care; see dinit-service(5) for details.
  163. * The "shutdown" utility now runs (if present) user-provided shutdown hooks; see shutdown(8) for
  164. details.
  165. * New service settings to control service logfile ownership and permissions: logfile-permissions,
  166. logfile-uid, and logfile-gid. Note that these have default values, which results in a change in
  167. behaviour from previous versions even if they are not specified in a service description (i.e.
  168. the logfile ownership and permissions are now always set).
  169. * A new "--offline" option for dinitctl enables using "enable" and "disable" subcommands to
  170. enable/disable services when dinit is not running.
  171. * "before" and "after" ordering requirements in service descriptions no longer force the named
  172. service to be loaded. This means that a service can be "before" another service even if the
  173. other service might not be installed, for example.
  174. * New "dinitctl" subcommands "is-started" and "is-failed", to test for specific service statuses
  175. (intended to be useful in scripts, for example). Contributed by q66.
  176. * The "dinitctl" utility now supports the "--use-passed-cfd" argument (as for shutdown).
  177. * A "configure" script to generate suitable build configuration is included. It is used by
  178. default when building on not-recognised systems. Contributed by Mobin Aydinfar.
  179. * Meson build system added (as an alternative to the existing makefile-based build) by Mobin
  180. Aydinfar.
  181. Changes:
  182. * The default is now to restart services automatically (previously required "restart = yes").
  183. * The permissions/ownership for logfiles has been reworked, see details in "New features" above.
  184. * Services which specify "run-as" to run as a different user now run with the supplementary
  185. groups of that user (this can be disabled at build time by setting USE_INITGROUPS=0).
  186. Thanks to q66.
  187. * Environment variables from the service-specific environment ("env-file" setting) can now be
  188. substituted in many service settings. Variable expansion now supports a limited subset of shell
  189. expansions (such as "$(NAME:-word}" and "${NAME:+word}). Behaviour is not identical to shell;
  190. see documentation. Implemented by q66.
  191. * Environment variable expansion in service descriptions is no longer optional. The "sub-vars"
  192. load option no in a service description no longer has any effect, and "no-sub-vars" is no
  193. longer recognised at all.
  194. * "/run/dinit.d" is now included in the default set of directories search for service description
  195. files (in system mode).
  196. * Some service defaults, including automatic restart, can now be configured at build time
  197. (contributed by Mobin Aydinfar).
  198. Fixes:
  199. * A bug in Dasynq which caused out-of-bounds vector access in dinit on shutdown has been fixed.
  200. * Fixed a dinit bug that could cause communication on a control socket to block indefinitely,
  201. which could theoretically cause dinitctl to hang (no cases of dinitctl hanging have been
  202. reported by users!).
  203. == Version 0.16.1
  204. (Bugfix release for 0.16.0)
  205. This release contains bug fixes for the previous release.
  206. Changes:
  207. * Fix issue where dependencies could stop before there dependents had stopped.
  208. * Fix issue where startup could fail if control socket location was not writable when
  209. dinit started.
  210. * Fix for dinitctl crashing due to an exception when a service description contained
  211. certain syntactical errors.
  212. * Fix nonsensical (but harmless) error message when loading services (when the service
  213. description is found in a directory that is not the first directory searched)
  214. (q66).
  215. * Fix issue with example rootfscheck.sh script (Mobin Aydinfar).
  216. * Minor build system improvements (q66).
  217. * Minor documentation updates.
  218. == Version 0.16.0
  219. (Alpha release #8)
  220. This release contains some new features and bug fixes.
  221. Changes:
  222. * "before" and "after" relationships can now be specified for services. These can be used to
  223. control startup order without creating explicit dependencies between services.
  224. * The "restart" command of dinitctl will now also restart hard dependents if the "--force"
  225. option is used (previously the "--force" option was ignored, and the command would fail if
  226. a dependent blocked the restart). Changes contributed by Duncan Overbruck.
  227. * The "-t" (or "--service") command-line option has been implemented to allow unambiguously
  228. specifying that the next argument is a service name. This can be used when booting Linux to
  229. select a target service or services (dinit otherwise ignores potential service names in this
  230. scenario, since the Linux kernel sometimes passes through kernel options to init).
  231. Implemented by Mobin Aydinfar.
  232. * The dinit daemon itself supports S6-compatible readiness notification (for when run under
  233. another supervision system or controlling process). The "-r <fd>" command line argument
  234. specifies the file descriptor to write the notification to. Contributed by q66.
  235. * Environment files (including per-service file as specified by env-file service setting):
  236. support for commands !clear, !unset and !import. These give more flexibility in how much of the
  237. original environment to expose to service processes. See the dinit(8) man page for more
  238. information.
  239. * The dinitctl utility provides more information if a service fails to start (avoiding the need
  240. to query the status separately or check logs to get the same information).
  241. * Fix bug with cgroup root path extraction where the path was longer than 64 characters (found
  242. by Github continuous integration builds as implemented by Mobin Aydinfar).
  243. * Fix bad pointer bug manifesting with very short command strings (reported by Duncan Overbruck).
  244. * Reloading a service now checks for (and disallows) cyclic dependencies.
  245. * Minor fix to service examples, contributed by Firas Khalil Khana.
  246. * Various minor build/install fixes.
  247. Other:
  248. * Github continuous integration was set up by Mobin Aydinfar
  249. == Version 0.15.1
  250. (Alpha release #7)
  251. This contains minor fixes for the previous release.
  252. Changes:
  253. * Remove extra newline which was printed after service description error log messages.
  254. * Install dinit-monitor as part of "make install".
  255. == Version 0.15.0
  256. (Alpha release #6)
  257. This release contains bug fixes and new features.
  258. Changes:
  259. * New "dinit-monitor" command can be used to perform notifications (via an external command, such
  260. as notify-send) when a service changes state. This is primarily intended for users running dinit
  261. in "user mode" rather than for system instances of dinit, although it works in either case. See
  262. the dinit-monitor(8) manual page for details.
  263. * Support on Linux for running service processes in a cgroup, via the "runs-in-cgroup" service
  264. setting. Cgroups must be mounted/created outside of dinit (eg via an early service), there is no
  265. support for this in dinit itself. See the dinit-service(5) manual page for details.
  266. * "dinitctl enable", "dinitctl disable" and "dinitctl rmdep" now give better feedback in various
  267. situations. For example, "dinitctl disable" will warn if a disabled service has other
  268. dependents (which may cause it to start anyway).
  269. * When parse errors occur in service description files, the relevant line number should now be
  270. reported (by dinitcheck, or in the dinit log).
  271. * Environment variable substitution in command lines is now performed for the "stop-command"
  272. setting in exactly the same way as for the "command" setting. Previously, by oversight,
  273. substitution was not performed for the "stop-command" setting.
  274. * Fix: start timeout was not being honoured for service restarts.
  275. == Version 0.14.0
  276. (Alpha release #5)
  277. This release contains bug fixes and a new feature.
  278. Changes:
  279. * "stop-command" service parameter can now be applied to process and bgprocess services. If
  280. specified for these service types, the specified command is used to stop the service.
  281. * "dinitctl status" now reports launch stage and error for services which failed to execute.
  282. Example output:
  283. $ src/dinitctl status mpd
  284. Service: mpd
  285. State: STOPPED (could not be launched)
  286. Stage: executing command
  287. Error: No such file or directory
  288. * Fixes bug where "dinitctl status" command would sometimes report an error.
  289. * Fixes a (situational, unlikely) bug where a bgprocess state could get stuck.
  290. * Fixes a potential memory corruption / crash bug occurring in out-of-memory situations when
  291. adding a dependency to a service (via "dinitctl reload" or "dinitctl add-dep").
  292. == Version 0.13.0
  293. NOTE: This release has some minor backwards-incompatible changes. Please read
  294. these notes carefully.
  295. This release includes changes contributed by q66.
  296. Changes:
  297. * A new dinitctl subcommand, "status", can be used to query extended status
  298. information for an individual service.
  299. * The default directory for user services has moved to ~/.config/dinit.d
  300. (rather than ~/dinit.d).
  301. * Some service settings now expand environment variables (given in the form
  302. $VARNAME, in any location that it appears within the setting value). The
  303. affected settings are: socket_path, logfile, env_file, working_dir and
  304. pid_file.
  305. * The variable substitution in command lines (which remains dependent on the
  306. 'sub-vars' load option, for now) uses the same substitution rules and logic
  307. as for other settings. In particular, this means that a variable expansion
  308. can occur as part of a command line argument (previously it always replaced
  309. whole arguments).
  310. * The dinitctl program now uses the value of the DINIT_SOCKET_PATH
  311. environment variable, if set, as the default control socket path. (If not
  312. set, behaviour is the same as for previous versions).
  313. * A "poweroff" symlink for shutdown will be installed alongside other symlinks
  314. ("reboot", "halt" etc). This allows integration in environments that expect
  315. such a command to be available.
  316. == Version 0.12.0
  317. This is the third Alpha release, issued as a follow-up to the previous Alpha
  318. releases. It contains a number of minor improvements.
  319. Changes:
  320. * A new "--ignore-unstarted" option to dinitctl, causing it to return success
  321. when attempting to restart a service which is not started (including when
  322. no service description for it exists).
  323. * Add an "always-chain" service option, so that chaining to another service
  324. (as specified via the "chain-to" setting) becomes unconditional.
  325. Feature contributed by Alexander Sherikov.
  326. * Add support for multiple service directories to be specified (via multiple
  327. --services-dir options).
  328. Feature contributed by Alexander Sherikov.
  329. * Improve control socket creation / stale socket removal. Previously, a
  330. system instance would unconditionally unlink a pre-existing socket file,
  331. and non-system instances would fail if a pre-existing socket file existed
  332. (even if it was not active, i.e. no dinit instance was accepting
  333. connections on it). Now, if there is an existing socket file, dinit will
  334. attempt to connect to it, and will refuse to start if this succeeds, or
  335. unlink it otherwise. Unfortunately this cannot be done atomically, so it
  336. should not be relied on as a general means to prevent more than one
  337. instance of dinit from starting.
  338. == Version 0.11.0
  339. This is a second Alpha release, issued as a follow-up to the previous Alpha
  340. release. It contains some minor bugfixes and a number of other improvements
  341. (all detailed below).
  342. Important: the default system socket location has changed. If version 0.11 of
  343. shutdown, halt etc are installed, they may not be able to communicate with the
  344. already-running (v0.10.0 or prior) dinit daemon. In this case, to shut the
  345. system down, use:
  346. dinitctl -p /dev/dinitctl shutdown
  347. Important: the "no-sigterm" option has been removed. To specify that no
  348. SIGTERM signal should be sent to a process to stop it, specify a different
  349. signal (or "none") via the "term-signal" setting. It is no longer possible to
  350. have both SIGTERM and an additional signal sent, but the settings should be
  351. less confusing.
  352. Changes:
  353. * dinit and dinitctl now support --version command line argument.
  354. * Improved diagnostic message if a service description file exists but
  355. can't be opened.
  356. * Default system socket location has changed from /dev/dinitctl to
  357. /run/dinitctl (see note above).
  358. * Active status is indicated in "dinitctl list" output. Square brackets
  359. indicate a service is marked active (i.e. it has been explicitly started)
  360. and curly brackets indicate a service that has started due to being the
  361. dependent of an active service.
  362. * The "dinitcheck" utility now performs a number of additional checks.
  363. * Better feedback is provided for various "dinitctl" commands. The affected
  364. service name is reported for any status update.
  365. * Fixed bug processing rlimit settings.
  366. * Fixed issue with interpreting unwanted command line parameters passed from
  367. linux kernel as service names.
  368. == Version 0.10.0
  369. This release is a major step towards a version 1.0 release. It should be
  370. considered an Alpha release; core functionality is complete but some
  371. ancillary functionality is still unimplemented. It is believed to be of
  372. good quality but bugs may be present.
  373. * When not running as system init, dinit will now fail to start if the control
  374. socket cannot be opened. In particular this should prevent accidentally
  375. starting multiple instances of dinit (and all services).
  376. * Services of type bgproc will no longer load if the pid-file setting is not
  377. supplied. Previously such services could be started, but stopping them would
  378. leave the process running.
  379. * Re-worked manual service stop (via command). Previously, manually stopping
  380. a service would inhibit automatic restart of the service, but not of its
  381. dependents; this meant that the service might still restart due to a
  382. dependent. In this version, manually stopping a service inhibits restart
  383. of the service and all dependents (note that the --force option is required,
  384. as previously, in order to stop a service which has active dependents).
  385. * Re-worked soft dependency handling slightly. A dependency now (re-)attaches
  386. to its dependent if it starts (or starts again) while the dependent is
  387. started. This leads to overall more consistent behaviour (and is simpler
  388. to implement properly).
  389. * Re-worked pinning. A service that is pinned stopped can now prevent dependents
  390. from starting (the behaviour is the same as if the service failed to start).
  391. * Support start-timeout setting for process services. Previously this setting
  392. was ignored for such services. It is mostly useful for services which also
  393. have readiness notification configured (since otherwise, a process service is
  394. considered started as soon as it begins execution).
  395. * If a process-based service fails to restart, restart of dependent services
  396. will be inhibited. This should prevent repeated attempts to launch a failing
  397. process caused by a restarting dependent service.
  398. * Fixed some cases where service target state would not be set correctly. This
  399. could cause output of "dinitctl list" to incorrectly show that a service would
  400. restart after stopping, when in fact it would remain stopped.
  401. * Fixed various corner-case bugs in service management.
  402. == Version 0.9.1
  403. This is a bug-fix release.
  404. * Fix a service getting stuck in the "stopping" state, if a dependent is
  405. set to auto-restart ("restart = true").
  406. == Version 0.9.0
  407. This release includes some new functionality and a rework of the chain-load
  408. mechanism.
  409. * The service specified via the "chain-to" setting will now only be started
  410. if the initiating service completes successfully, i.e. if it terminates
  411. normally (with an exit code of 0) and only if it is not manually stopped.
  412. * New option "--container" (-o) inhibits system management functions (such
  413. as machine shutdown/restart) that are normally enabled when dinit runs as
  414. process ID 1. A complementary "--system-mgr" (-m) option enables system
  415. management (even when not running as PID 1).
  416. * Fixed pinned-started services stopping when released by a dependent
  417. service, instead of remaining in the started state, and some other bugs
  418. related to pinning. Some issues may remain to be fixed in a later release.
  419. == Version 0.8.2
  420. This is a bug-fix release.
  421. * Fixed group not being set correctly when "run-as" or "socket-uid" were used.
  422. * Fixed "dinitctl rm-dep" command
  423. * Fixed bug preventing shutdown when auto-restart services were configured
  424. * Fixed smooth recovery of bgprocess services
  425. == Version 0.8.1
  426. This is a bug-fix release.
  427. * Fixed crash on service load error.
  428. * Fixed an unchecked allocation leading to possible unexpected termination.
  429. * Fixed a slow memory leak (in the bundled Dasynq library).
  430. * Fixed --help option for "dinitcheck" not working.
  431. * Fixed badly formatted error message from process launch failure.
  432. * Fixed issue where log file would not always be flushed on exit.
  433. * Fixed "dinitcheck" crashing if service description could not be found.
  434. == Version 0.8.0
  435. This release includes major usability features.
  436. * New command "dinitcheck" checks service descriptions for errors (without attempting to load
  437. or start the service). Checks the named service(s) and any dependencies.
  438. * Service descriptions can now be reloaded, using "dinitctl reload <service-name>". This works
  439. for services which are started, with some restrictions, and for services which are stopped,
  440. and allows dependencies to be altered.
  441. * dinitctl now defaults to the system process socket location when run as root. This means that
  442. using '-s' is no longer necessary (it is still supported for backwards compatibility). A new
  443. '-u' option can be used to communicate with the user daemon, if there is one.
  444. == Version 0.7.0
  445. This release adds a minor feature, and includes a re-work of some base functionality
  446. (which should not affect most use cases).
  447. * dinitctl "restart" command added. Re-starts an already-running service without affecting
  448. activation or dependency links.
  449. * dinitctl "stop" command now requires a `--force` option if dependents of the specified
  450. service would also need to stop.
  451. * dinitctl "wake" command now reconnects dependency links from dependents of the specified
  452. service, and can only be used if at least one such dependent is started.
  453. == Version 0.6.1:
  454. This is a bug-fix release with several minor fixes:
  455. * Resource limits were not properly being set.
  456. * Prevent early termination when standard input is closed or set to a device which cannot
  457. be watched for input.
  458. * Control protocol fix, possibly not affecting any real usage.
  459. == Version 0.6.0:
  460. This release adds a number of minor features:
  461. * Better behaviour when boot fails. User can choose an action from reboot, resume boot process,
  462. start the "recovery" service, or power-off.
  463. * New service settings for limiting resources at the process level: "rlimit-nofile",
  464. "rlimit-core", "rlimit-data", "rlimit-addrspace". Both hard and soft limits can be set.
  465. See dinit-service(5) for details.
  466. * New "env-file" setting allows per-setting environment to be specified via a file. The file
  467. is re-read each time the service process is started.
  468. * Added a "--quiet" option to suppress console output from Dinit.
  469. * Dinit when run as a user daemon no longer logs via syslog. Logging to file can still be
  470. enabled via the "-l"/"--log-file" option.
  471. * Added a "--socket-path"/"-p" option to dinitctl, to specify the socket path for communication
  472. with the dinit daemon.
  473. A number of minor bugfixes and other improvements are also implemented. An integration test
  474. framework has been added with a small number of tests, to complement the existing unit tests.
  475. == Version 0.5.2:
  476. This is a bug-fix release for several minor issues which have been found in the preceding
  477. release (0.5.1).
  478. * Fix logging failure after log buffer becomes full.
  479. * Fix readiness-fd notification not immediately updating service states.
  480. * Fix use of old settings in sample configuration for Linux.
  481. * Re-create control socket file node if it "disappears". Should solve issues if root filesystem
  482. is mounted read-write on boot.
  483. * Fix potential issue with service launch failure for services using a fixed notification fd.
  484. == Version 0.5.1:
  485. This is a bug-fix release for several issues of varying severity which have been found in the
  486. preceding release.
  487. * Improved logging behaviour when a service runs "on console" for a very short time.
  488. * Fix for crash due to SIGALRM on OpenBSD.
  489. * Fixes for compiling with Musl C library.
  490. * Fix dinitctl "enable" and "disable" commands when path to service directory is absolute.
  491. * "termsignal" setting renamed "term-signal" and now supports "KILL" signal. "termsignal"
  492. is still supported for compatibility with existing service descriptions.
  493. * Other minor fixes.
  494. == Version 0.5.0:
  495. This version adds S6-compatible readiness notification support, and adds support for updating
  496. the "utmp" database when services start/stop (this functionality should be avoided if possible
  497. since the "utmp" database is mostly an historical artifact, and system support is often prone
  498. to issues which allow unprivileged users to prevent updates and deny or delay logins; however,
  499. utilities such as "who" may depend on the database being updated appropriately).
  500. Other changes:
  501. * Add "-u" command line option to force running dinit as a user instance.
  502. * Add a "chain-to" service property to better support recovery services.
  503. * Add a "shares-console" service option to allow running services "on the console" without having
  504. them own it exclusively.
  505. * Add "inittab-id" and "inittab-line" service settings for utmp support.
  506. * Minor bugfixes.
  507. == Version 0.4.0:
  508. This version focuses on being more "distribution friendly". It adds mechanisms to add and remove
  509. dependencies, either temporarily or persistently, between services without manual editing of
  510. service description files.
  511. Changes:
  512. * A new service description directive, "waits-for.d", allows specifying a directory for which the
  513. contents (filenames) are read as dependencies. This provides a convenient way to add and remove
  514. dependencies to service descriptions without editing the textual service description file.
  515. * dinitctl has new commands, "add-dep" and "rm-dep", to add or remove a dependency between
  516. services. The dependency is not persisted and won't survive a restart. Check the man page for
  517. details.
  518. * dinitctl has new commands, "enable" and "disable". These permanently enable/disable
  519. a service for some target ("boot" by default) by creating/destroying a symbolic link
  520. in the waits-for.d directory specified in the service description (and create/remove
  521. waits-for dependency dynamically). Check the man page for details.
  522. * A code style guide has been added (in the "doc" directory).
  523. * More tests, minor bugfixes.