NEWS 21 KB

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