From 376811c1a73dabbe8b9b66bb573313982570bb6d Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 21 Sep 2017 22:52:48 +0200 Subject: [PATCH] doc/config.md: Update run and task, mention pipes + redirects Signed-off-by: Joachim Nilsson --- doc/config.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/config.md b/doc/config.md index 1e8f21c4..26a54aba 100644 --- a/doc/config.md +++ b/doc/config.md @@ -68,11 +68,20 @@ Syntax: * `run [LVLS] /path/to/cmd ARGS -- Optional description` One-shot command to run in sequence when entering a runlevel, with - optional arguments and description. This command is guaranteed to be - completed before running the next command. + optional arguments and description. + + `run` commands are guaranteed to be completed before running the next + command. Highly useful if true serialization is needed. * `task [LVLS] /path/to/cmd ARGS -- Optional description` - One-shot like 'run', but starts in parallel with the next command + One-shot like 'run', but starts in parallel with the next command. + + Both `run` and `task` commands are run in a shell, so pipes and + redirects can be freely used: + +```shell + task [s] echo "foo" | cat >/tmp/bar +``` * `service [LVLS] /path/to/daemon ARGS -- Optional description` Service, or daemon, to be monitored and automatically restarted if it