TODO 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. For version 0.9.1
  2. -----------------
  3. * [DONE] update docs re pinning
  4. * control protocol: START: add response case for not starting because pinned in stopped
  5. * make sure process/bgprocess correctly handle stop when the process has already died
  6. (i.e. when pinned-started but process died)
  7. * [DONE] pinned-stopped service should prevent dependent from starting (like failure)
  8. For version 0.10.0:
  9. -------------------
  10. * [DONE] Check that desired_state is getting set correctly. (Currently we don't decide whether a
  11. service will restart until it stops...)
  12. * for non-system init, fail to start if the control socket exists
  13. For version 0.11.+:
  14. ------------------
  15. * report process launch failure reason (stage & errno) via dinitctl.
  16. * Show "activated" state in "dinitctl list" output
  17. * Service description sanity checks:
  18. - Service type not specified
  19. - maybe default to 'internal' if command not specified
  20. - if command specified but type not, report an error
  21. - other checks?
  22. - errors should also be reported by dinitcheck
  23. For version 1.0 (i.e. longer-term plans):
  24. -----------------------------------------
  25. * Service description parse errors should report line number
  26. * dinitcheck should perform lint checks - do named files exist? etc
  27. * Limit memory use by control connections. Currently clients can queue commands without limit.
  28. * Consider using mlockall (if system process).
  29. * Dinitctl command to get full status of a service.
  30. * "triggered" service type: external process notifies Dinit when the service
  31. has started. (maybe?)
  32. - key thing is we want some way to eg mount filesystem once the disk comes up,
  33. configure network when device comes up, etc, potentially relying an an external
  34. tool/daemon.
  35. * on shutdown, after repeated intervals with no activity, display information
  36. about services we are waiting on (or, do this when prompted via ^C or C-A-D).
  37. * Documentation must be complete (see section below).
  38. * Proper support for socket activation?
  39. * Chaining of service process input/output?
  40. * Be able to boot and shutdown Linux and FreeBSD (or OpenBSD).
  41. For later (post 1.0):
  42. ---------------------
  43. * On linux when running with PID != 1, write PID to /proc/sys/kernel/cad_pid so
  44. that we still receive SIGINT from ctrl+alt+del (must be done after /proc is
  45. mounted, possibly could be left to a service script)
  46. * Perhaps need a way to prevent script services from re-starting.
  47. (eg there's no need to mount filesystems twice; there might be various other
  48. system initialisations that can't or shouldn't really be "undone" and so do
  49. not need to be re-done).
  50. * Internationalisation
  51. * A service can prevent shutdown/reboot by failing to stop. Maybe make
  52. multiple CTRL-ALT-DEL presses (or ^C since that's more portable) commence
  53. immediate shutdown (or launch a simple control interface).
  54. * When we take down a service or tty session, it would be ideal if we could kill
  55. the whole process tree, not just the leader process (need cgroups or pid
  56. namespace or other mechanism).
  57. * Allow logging tasks to memory (growing or circular buffer) and later
  58. switching to disk logging (allows for filesystem mounted readonly on boot).
  59. But perhaps this really the responsibility of another daemon.
  60. * Allow running services with different resource limits, chroot, cgroups,
  61. namespaces (pid/fs/uid), etc
  62. * Support chaining service output to another process (logger) input; if the
  63. service dies the file descriptor of its stdout isn't closed and is reassigned
  64. when the service is restarted, so that minimal output is lost.
  65. - even more, it would be nice if a single logger process could be responsible
  66. for receiving output from multiple services. This would require some kind of
  67. protocol for passing new output descriptors to the logger (for when a
  68. service starts).
  69. Even later / Maybe never:
  70. -------------------------
  71. * Support recognising /etc/init.d services automatically (as script services, with
  72. no dependency management - or upstart compatible dependency management)
  73. Also BSD's rc.d style scripts (PROVIDE, REQUIRE).
  74. * Place some reasonable, soft limit on the number of services to be started
  75. simultaneously, to prevent thrashing. Services that are taking a long time
  76. to start don't count to the limit. Maybe use CPU/IO usage as a controlling
  77. factor.
  78. * Cron-like tasks (if started, they run a sub-task periodically. Stopping the
  79. task will wait until the sub-task is complete).
  80. * Allow to run services attached to virtual tty, allow connection to that tty (ala "screen").
  81. * SystemD-like handling of filesystem mounts (see autofs documentation in kernel)
  82. i.e. a mount point gets an autofs attached, and lazily gets mounted when accessed
  83. (or is mounted in parallel). Probably put the functionality in a separate daemon.
  84. Documentation:
  85. --------------
  86. * Design philosophy/rationale document
  87. * More system integration documentation?