aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorLexxy Fox <lexxyfox@gmail.com>2023-09-25 17:33:22 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2023-10-03 16:43:39 -0500
commit9934e9f96ea91995dfab382bf05b47d43c1ac4f9 (patch)
treea6f3bc377be9506ab8126f91827b9cb243c3f918 /man
parentf1e5510ccf06a2e0ea61a2de2e764ddc6a7b1d5d (diff)
supervise-daemon: implement output_logger and error_logger.
Allows redirecting process stdin and stdout to another process, just like is already possible with start-stop-daemon. Also added --stdout-logger and --stderr-logger to the man page.
Diffstat (limited to 'man')
-rw-r--r--man/supervise-daemon.817
1 files changed, 17 insertions, 0 deletions
diff --git a/man/supervise-daemon.8 b/man/supervise-daemon.8
index cd76beb2..c3a6e9f7 100644
--- a/man/supervise-daemon.8
+++ b/man/supervise-daemon.8
@@ -158,6 +158,23 @@ The logfile can also be a named pipe.
The same thing as
.Fl 1 , -stdout
but with the standard error output.
+.It Fl -stdout-logger Ar cmd
+Run cmd as a child process redirecting the standard output to the
+standard input of cmd when started with
+.Fl background .
+Cmd must be an absolute pathname, but relative to the path optionally given with
+.Fl r , -chroot .
+This process must be prepared to accept input on stdin and be able to
+log it or send it to another location.
+.It Fl -stderr-logger Ar cmd
+Run cmd as a child process and
+Redirect the standard error of the process to the standard input of cmd
+when started with
+.Fl background .
+Cmd must be an absolute pathname, but relative to the path optionally given with
+.Fl r , -chroot .
+This process must be prepared to accept input on stdin and be able to
+log it or send it to another location.
.It Fl -capabilities Ar cap-list
Start the daemon with the listed inheritable, ambient and bounding capabilities.
The format is the same as in cap_iab(3).