2
0

TODO 4.4 KB

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