From 37983e69c491a2eb314dd50efee90a38bbf2137e Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 27 Sep 2017 09:08:32 +0200 Subject: [PATCH] Clarify service stanza and simplify text further Signed-off-by: Joachim Nilsson --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7e9dd7b0..0b82dbc3 100644 --- a/README.md +++ b/README.md @@ -106,15 +106,16 @@ service [LVLS] /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