2
0

TODO 2.8 KB

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