2
0

TODO 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. For version 1.0 (release requirements):
  2. ---------------------------------------
  3. * Be able to boot and shutdown Linux and FreeBSD (or OpenBSD).
  4. * Documentation must be complete (mostly done; will need updates as other items are completed).
  5. * [DONE] dinitcheck should be able to resolve variable substitutions using variables from running dinit.
  6. For later (post 1.0):
  7. ---------------------
  8. * jails support
  9. * Proper support for socket activation?
  10. * Perhaps need a way to prevent script services from re-starting.
  11. (eg there's no need to mount filesystems twice; there might be various other
  12. system initialisations that can't or shouldn't really be "undone" and so do
  13. not need to be re-done).
  14. * on shutdown, after a long interval with no activity, display information about
  15. services we are waiting on (and/or, do this when prompted via ^C or C-A-D?)
  16. * Internationalisation
  17. * A service can prevent shutdown/reboot by failing to stop. Maybe make
  18. multiple CTRL-ALT-DEL presses (or ^C since that's more portable) commence
  19. immediate shutdown (or launch a simple control interface).
  20. * When we take down a service or tty session, it would be ideal if we could kill
  21. the whole process tree, not just the leader process (need cgroups or pid
  22. namespace or other mechanism).
  23. * Allow running services chroot, in namespaces (pid/fs/uid), etc
  24. * Support chaining service output to another process (logger) input; if the
  25. service dies the file descriptor of its stdout isn't closed and is reassigned
  26. when the service is restarted, so that minimal output is lost. [Done!]
  27. - even more, it would be nice if a single logger process could be responsible
  28. for receiving output from multiple services. This would require some kind of
  29. protocol for passing new output descriptors to the logger (for when a
  30. service starts).
  31. Even later / Maybe never:
  32. -------------------------
  33. * Support recognising /etc/init.d services automatically (as script services, with
  34. no dependency management - or upstart compatible dependency management)
  35. Also BSD's rc.d style scripts (PROVIDE, REQUIRE).
  36. * Place some reasonable, soft limit on the number of services to be started
  37. simultaneously, to prevent thrashing. Services that are taking a long time
  38. to start don't count to the limit. Maybe use CPU/IO usage as a controlling
  39. factor.
  40. * Cron-like tasks (if started, they run a sub-task periodically. Stopping the
  41. task will wait until the sub-task is complete).
  42. * Allow to run services attached to virtual tty, allow connection to that tty (ala "screen").
  43. * SystemD-like handling of filesystem mounts (see autofs documentation in kernel)
  44. i.e. a mount point gets an autofs attached, and lazily gets mounted when accessed
  45. (or is mounted in parallel). Probably put the functionality in a separate daemon.