7 * Support S6-style startup notification (write to fd)
8 * Man pages for all programs (done for dinit, not for dinitctl/shutdown/etc).
9 * Write wtmp entry on startup (see simpleinit)
10 * "triggered" service type: external process notifies Dinit when the service
12 * on shutdown, after repeated intervals with no activity, display information
13 about services we are waiting on (or, do this when prompted via ^C or C-A-D).
14 * A (perhaps limited) way(s) to modify a service description after it is loaded -
15 eg add/remove dependencies, change properties.
16 * Think about detecting runs-on-console dependency conflicts (i.e. if A runs-on-console and
17 B depends on A and runs-on-consle then B can never start).
18 * Documentation must be complete (see section below).
19 * Package-manager-friendly way to enable/disable services.
20 Perhaps a service can specify a dependency file (with dependency type) where
21 the file contains a list of service names, or if it is a directory, each
22 filename within corresponds to a service that is a dependency.
23 * Be able to boot and shutdown Linux and FreeBSD.
27 * On linux when running with PID != 1, write PID to /proc/sys/kernel/cad_pid so
28 that we still receive SIGINT from ctrl+alt+del (must be done after /proc is
29 mounted, possibly could be left to a service script)
30 * Perhaps need a way to prevent script services from re-starting.
31 (eg there's no need to mount filesystems twice; there might be various other
32 system initialisations that can't or shouldn't really be "undone" and so do
33 not need to be re-done).
34 * Internationalisation
35 * A service can prevent shutdown/reboot by failing to stop. Maybe make
36 multiple CTRL-ALT-DEL presses (or ^C since that's more portable) commence
37 immediate shutdown (or launch a simple control interface).
38 * When we take down a service or tty session, it would be ideal if we could kill
39 the whole process tree, not just the leader process (need cgroups or pid
40 namespace or other mechanism).
41 * Allow logging tasks to memory (growing or circular buffer) and later
42 switching to disk logging (allows for filesystem mounted readonly on boot).
43 But perhaps this really the responsibility of another daemon.
44 * Allow running services with different resource limits, chroot, cgroups,
45 namespaces (pid/fs/uid), etc
47 Even later / Maybe never:
48 -------------------------
49 * Support recognising /etc/init.d services automatically (as script services, with
50 no dependency management - or upstart compatible dependency management)
51 Also BSD's rc.d style scripts (PROVIDE, REQUIRE).
52 * Place some reasonable, soft limit on the number of services to be started
53 simultaneously, to prevent thrashing. Services that are taking a long time
54 to start don't count to the limit. Maybe use CPU/IO usage as a controlling
56 * Cron-like tasks (if started, they run a sub-task periodically. Stopping the
57 task will wait until the sub-task is complete).
58 * Allow to run services attached to virtual tty, allow connection to that tty (ala "screen").
59 * SystemD-like handling of filesystem mounts (see autofs documentation in kernel)
60 i.e. a mount point gets an autofs attached, and lazily gets mounted when accessed
61 (or is mounted in parallel). Probably put the functionality in a separate daemon.
66 * Design philosophy/rationale document
67 * Coding style guidelines
69 * What's the best TERM setting? gogetty gives me "linux" but I think other variants may be
70 better (eg "linux-c").
72 * Figure out the ConsoleKit/logind / PolicyKit mess & how dinit needs to fit into it.
73 * Consolekit/logind tracks "sessions". Provides a mechanism to mark a session starting,
74 associates processes with sessions, provides calls to terminate sessions etc (why?!!)
75 Can use environment variable or cgroups to track processes in a session.
76 A PAM module exists to create/destroy sessions.
77 * Consolekit/logind also allows for requesting shutdown, reboot, and inhibiting reboot
79 * "seats" are a set of input/output hardware (mouse/keyboard/monitor) on which a session
80 can be run. You can have multiple sessions on a seat - one is in the foreground
81 (eg linux virtual ttys implement multiple sessions on a single seat).
82 Sessions can run without a seat (eg ssh session).