of code where it may be missing - check TODO's in code).
* Write wtmp entry on startup (see simpleinit)
* Allow running services as a different UID
-* Must be able to specify kill timeout (after which kill -9!)
* "triggered" service type: external process notifies Dinit when the service
has started.
* Ability to reload stopped services (reload service description)
-
+* Some way to specify environment (perhaps a common environment for all
+ processes)
+* Load services from several different directories, with an order of precedence,
+ to allow for packaged service descriptions and user-modified service
+ descriptions.
+* Linux: use prctl with PR_SET_CHILD_SUBREAPER
For later:
----------
script with a signal (and return the service to the STOPPED state). So a long-
running filesystem check, for instance, need not hold up shutdown.
* When we take down a service or tty session, it would be ideal if we could kill
- the whole process tree, not just the leader process.
+ the whole process tree, not just the leader process (need cgroups or pid
+ namespace or other mechanism).
* Investigate using cn_proc netlink connector (cn_proc.h) to receive process
termination events even when running with PID != 1 (Linux only).
Also, there is the possibility of having a small, simple PID-1 init which