TODO 2.8 KB

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