mirror of
https://github.com/troglobit/finit.git
synced 2026-11-02 13:20:32 +00:00
README: Add explanation of service early and link to doc/config.md
Also, update the service help text in doc/config.md to include info on both runlevels and explain the condition in the listed example. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
47793dcdf2
commit
647a79ffbd
2 files changed
+28
-3
No files matched your search
@@ -43,9 +43,9 @@ entirely in C.
|
||||
|
||||
Configuration is read from [/etc/finit.conf](doc/config.md#etcfinitconf)
|
||||
which details kernel modules to load, services and TTYs to start. When
|
||||
initial [bootstrap](doc/bootstrap.md) is done, including setting up
|
||||
networking, [/etc/finit.d/](doc/config.md#etcfinitd) and the familiar
|
||||
[/etc/rc.local](#runparts--etcrclocal) are run.
|
||||
the initial [bootstrap](doc/bootstrap.md) is done, including setting up
|
||||
networking, all services in [/etc/finit.d/](doc/config.md#etcfinitd) and
|
||||
the familiar [/etc/rc.local](#runparts--etcrclocal) are started.
|
||||
|
||||
**Example /etc/finit.conf:**
|
||||
|
||||
@@ -91,6 +91,24 @@ networking, [/etc/finit.d/](doc/config.md#etcfinitd) and the familiar
|
||||
tty [12345] /dev/ttyAMA0 115200 vt100
|
||||
```
|
||||
|
||||
The `service` stanza, described in full in [config.md][doc/config.md],
|
||||
has the following components:
|
||||
|
||||
```
|
||||
service [LVLS] <COND> /path/to/daemon ARGS -- Some text
|
||||
^ ^ ^ ^ ^ ^
|
||||
| | | | | `-- Optional description
|
||||
| | | | `---------- Daemon arguments
|
||||
| | | `-------------------------- Path to daemon
|
||||
| | `--------------------------------- Optional conditions
|
||||
| `---------------------------------------- Optional Runlevels
|
||||
`------------------------------------------------ Monitored application
|
||||
```
|
||||
|
||||
Many of the components are optional. What is required, however, is for the
|
||||
daemon *not to fork* to and detach itself. This is usually an `-n` or `-f`
|
||||
argument to the application.
|
||||
|
||||
For an example of a full blown embedded Linux, see [TroglOS][9], or take
|
||||
a look at the `contrib/` section with [Alpine Linux](contrib/alpine/),
|
||||
[Debian](contrib/debian/), support and more.
|
||||
|
||||
Reference in new issue
Block a user