From 2b9eecbef3fbe837bebe7dfb14fd41be21d6eff6 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 29 Oct 2017 17:17:21 +0100 Subject: [PATCH] Spell check and mention use of `logger` tool in service stanza Signed-off-by: Joachim Nilsson --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 427e4d56..7e594723 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ advanced uses as well: service /usr/sbin/sshd -D -Dependencies are handled using [conditions](doc/conditions.md). On of +Dependencies are handled using [conditions](doc/conditions.md). One of the most common conditions is to wait for basic networking to become available: @@ -124,6 +124,10 @@ to create its PID file, by default `/var/run/syslogd.pid`. service [2345] log /usr/sbin/ntpd -n -N -p pool.ntp.org service [S12345] /sbin/syslogd -n -- Syslog daemon +Notice the `log` keyword, BusyBox `ntpd` uses `stderr` for logging when +run in the foreground. With `log` Finit redirects `stdout` + `stderr` +to the system log daemon using the command line `logger(1)` tool. + A service, or task, can have multiple dependencies listed. Here we wait for *both* `syslogd` to have started and basic networking to be up: