mirror of
https://github.com/troglobit/finit.git
synced 2026-11-10 16:31:21 +00:00
It is difficult to write readable technical text.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
ab7df43ccb
commit
d335c9833c
1 file changed
+9
-5
@@ -91,8 +91,10 @@ the familiar [/etc/rc.local](#runparts--etcrclocal) are started.
|
|||||||
tty [12345] /dev/ttyAMA0 115200 vt100
|
tty [12345] /dev/ttyAMA0 115200 vt100
|
||||||
```
|
```
|
||||||
|
|
||||||
The `service` stanza, described in full in [doc/config.md](doc/config.md),
|
The `service` stanza, as well as `task`, `run`, `inetd` and others are
|
||||||
has the following components:
|
described in full in [doc/config.md](doc/config.md). Here's a quick
|
||||||
|
overview of some of the most common components needed to start a UNIX
|
||||||
|
daemon:
|
||||||
|
|
||||||
```
|
```
|
||||||
service [LVLS] <COND> /path/to/daemon ARGS -- Some text
|
service [LVLS] <COND> /path/to/daemon ARGS -- Some text
|
||||||
@@ -105,9 +107,11 @@ has the following components:
|
|||||||
`------------------------------------------------ Monitored application
|
`------------------------------------------------ Monitored application
|
||||||
```
|
```
|
||||||
|
|
||||||
Many of the components are optional. What is required, however, is for the
|
Some components are optional. It is important to note, however, is for
|
||||||
daemon *not to fork* to and detach itself. This is usually an `-n` or `-f`
|
the daemon *not to fork* and detach itself from the controlling TTY.
|
||||||
argument to the application.
|
This is usually an `-n` or `-f` argument to the application. If the
|
||||||
|
daemon detaches itself, Finit cannot monitor it and will instead try to
|
||||||
|
restart it.
|
||||||
|
|
||||||
For an example of a full blown embedded Linux, see [TroglOS][9], or take
|
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/),
|
a look at the `contrib/` section with [Alpine Linux](contrib/alpine/),
|
||||||
|
|||||||
Reference in new issue
Block a user