TODO 4.8 KB

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