mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
TODO: Remove finished items now documented in README
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -64,44 +64,10 @@ Configuration
|
||||
Runlevels
|
||||
---------
|
||||
|
||||
* Add support for `runlevel N` to `finit.conf`
|
||||
|
||||
* Improve support for runlevels: startup, running (services from
|
||||
`finit.conf`), and shutdown as well as hooks when switching RL, startup
|
||||
at RL 1 and a default run level.
|
||||
|
||||
* Implement `initctl stop|start|restart|reload|status <SVC>` and
|
||||
`service <SVC> stop|start|restart|reload|status` on top
|
||||
|
||||
* Add PRE and POST hooks for when changing runlevels
|
||||
|
||||
* SysV init in Debian uses an `rcS.d/` for scripts that should run
|
||||
once at boot. These scripts are run before the actual runlevel,
|
||||
which is set in `inittab(5)`. We could use `task [S]` and `run [S]`
|
||||
(below) for this.
|
||||
|
||||
* Add support for a new runlevel 'S' that is started before all other
|
||||
services in the selected runlevel.
|
||||
|
||||
|
||||
Services and Tasks
|
||||
------------------
|
||||
|
||||
Both the `task` and `boot` stanzas below are like `service`, share the
|
||||
same mechanism for registering callbacks. These callbacks can be used
|
||||
to check a configuration db and return 1 (RUN), 2 (STOP), or 3 (RELOAD).
|
||||
|
||||
* Add support for `task [RUNLVL] ...` similar to services, but one-shot.
|
||||
* Add support for `run [RUNLVL] ...` similar to task, but waits for
|
||||
completion before continuing with the next task/service
|
||||
* Add support for service/task/run dependencies
|
||||
* Add support for `init list` to show running services
|
||||
|
||||
It is tempting to say that a task called at runlevel S would be a
|
||||
blocking call, like run, but there are likely use-cases when you want to
|
||||
call on-shot tasks in parallel with something else, even at boot. Hence
|
||||
the differentiation between "task" and "run", which are essentially the
|
||||
same, except for the "pause and wait for completion" that "run" has.
|
||||
* Add PRE and POST hooks for when switching between runlevels
|
||||
|
||||
|
||||
Miscellaneous
|
||||
|
||||
Reference in New Issue
Block a user