TODO 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Soon:
  2. -------------------
  3. * better environment handling, way to restrict which variables get passed through
  4. Note that "XXX=YYYY" settings on Linux kernel command line sometimes get set as environment
  5. variables (and sometimes don't) even if the kernel should understand them (eg "pti=off",
  6. but not "root=/dev/sda1").
  7. For version 0.16:
  8. -----------------
  9. * Limit memory use by control connections. Currently clients have command responses queued without
  10. limit; it would be better to stop accepting new commands once a certain amount of response is
  11. buffered.
  12. * Externally triggered services (to represent devices etc). Such services will not reach STARTED
  13. state unless the external trigger occurs (eg "dinitctl trigger servicename", details to be
  14. determined).
  15. * Maybe: support for after/before orderings (specify a service name like a dependency, but don't
  16. cause the named service to be loaded if it otherwise wouldn't be).
  17. For version 1.0 (release requirements):
  18. ---------------------------------------
  19. * Be able to boot and shutdown Linux and FreeBSD (or OpenBSD).
  20. Maybe for 1.0?
  21. --------------
  22. * on shutdown, after a long interval with no activity, display information about
  23. services we are waiting on (and/or, do this when prompted via ^C or C-A-D?)
  24. * Documentation must be complete (mostly done; will need updates as other items are completed).
  25. * Proper support for socket activation?
  26. * Chaining of service process input/output?
  27. For later (post 1.0):
  28. ---------------------
  29. * jails support
  30. * On linux when running with PID != 1, write PID to /proc/sys/kernel/cad_pid so
  31. that we still receive SIGINT from ctrl+alt+del (must be done after /proc is
  32. mounted, possibly could be left to a service script)
  33. * Perhaps need a way to prevent script services from re-starting.
  34. (eg there's no need to mount filesystems twice; there might be various other
  35. system initialisations that can't or shouldn't really be "undone" and so do
  36. not need to be re-done).
  37. * Internationalisation
  38. * A service can prevent shutdown/reboot by failing to stop. Maybe make
  39. multiple CTRL-ALT-DEL presses (or ^C since that's more portable) commence
  40. immediate shutdown (or launch a simple control interface).
  41. * When we take down a service or tty session, it would be ideal if we could kill
  42. the whole process tree, not just the leader process (need cgroups or pid
  43. namespace or other mechanism).
  44. * Allow logging tasks to memory (growing or circular buffer) and later
  45. switching to disk logging (allows for filesystem mounted readonly on boot).
  46. But perhaps this really the responsibility of another daemon.
  47. * Allow running services with different resource limits, chroot, cgroups,
  48. namespaces (pid/fs/uid), etc
  49. * Support chaining service output to another process (logger) input; if the
  50. service dies the file descriptor of its stdout isn't closed and is reassigned
  51. when the service is restarted, so that minimal output is lost.
  52. - even more, it would be nice if a single logger process could be responsible
  53. for receiving output from multiple services. This would require some kind of
  54. protocol for passing new output descriptors to the logger (for when a
  55. service starts).
  56. * dinitcheck should be able to resolve variable substitutions using variables from running dinit.
  57. Even later / Maybe never:
  58. -------------------------
  59. * Support recognising /etc/init.d services automatically (as script services, with
  60. no dependency management - or upstart compatible dependency management)
  61. Also BSD's rc.d style scripts (PROVIDE, REQUIRE).
  62. * Place some reasonable, soft limit on the number of services to be started
  63. simultaneously, to prevent thrashing. Services that are taking a long time
  64. to start don't count to the limit. Maybe use CPU/IO usage as a controlling
  65. factor.
  66. * Cron-like tasks (if started, they run a sub-task periodically. Stopping the
  67. task will wait until the sub-task is complete).
  68. * Allow to run services attached to virtual tty, allow connection to that tty (ala "screen").
  69. * SystemD-like handling of filesystem mounts (see autofs documentation in kernel)
  70. i.e. a mount point gets an autofs attached, and lazily gets mounted when accessed
  71. (or is mounted in parallel). Probably put the functionality in a separate daemon.