From a06127b9901dfcc679849533777f6836a66fc895 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 15 Jan 2018 10:10:20 +0100 Subject: [PATCH] Document new `log:...` option to task/run/services Signed-off-by: Joachim Nilsson --- docs/config.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/config.md b/docs/config.md index 17f07152..8df1b95c 100644 --- a/docs/config.md +++ b/docs/config.md @@ -316,8 +316,17 @@ Without the `:ID` to the service the latter will overwrite the former and only the old web server would be started and supervised. The `run`, `task`, `service`, or `inetd` stanzas also allow the keyword -`log` to redirect `stderr` and `stdout` of the application to syslog, -using `logger`. +`log` to redirect `stderr` and `stdout` of the application to a file or +syslog using the native `logit` tool. The full syntax is: + + log:/path/to/file + log:prio:facility.level,tag:ident + log:null + log + +**Example:** + + service log:prio:user.warn,tag:ntpd /sbin/ntpd pool.ntp.org -- NTP daemon Worth noting is that conditions is allowed for all these stanzas. For a detailed description, see the [Conditions](conditions.md) document.