From 9934e9f96ea91995dfab382bf05b47d43c1ac4f9 Mon Sep 17 00:00:00 2001 From: Lexxy Fox Date: Mon, 25 Sep 2023 17:33:22 -0500 Subject: 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. --- man/supervise-daemon.8 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'man') 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). -- cgit v1.2.3