TODO 4.5 KB

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