Clarify service stanza and simplify text further

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-09-27 09:08:32 +02:00
parent a45a872c28
commit 37983e69c4
+9 -8
View File
@@ -106,15 +106,16 @@ service [LVLS] <COND> /path/to/daemon ARGS -- Some text
`------------------------------------------------ Monitored application
```
Some components are optional. It is important to note, however, is for
the daemon *not to fork* and detach itself from the controlling TTY.
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.
Some components are optional: runlevel(s), condition(s) and description,
making it easy to create simple start scripts and still possible for more
advanced uses as well:
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.
service /usr/sbin/sshd -D
**Note:** Make sure daemons *do not* fork and detach themselves from the
controlling TTY, usually an `-n` or `-f` flag, or `-D as in the case
of OpenSSH above.. If it detaches itself, Finit cannot monitor it and
will instead try to restart it.
Features