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. --- sh/supervise-daemon.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sh') diff --git a/sh/supervise-daemon.sh b/sh/supervise-daemon.sh index 8eb98a17..4ff64a2e 100644 --- a/sh/supervise-daemon.sh +++ b/sh/supervise-daemon.sh @@ -30,6 +30,8 @@ supervise_start() ${chroot:+--chroot} $chroot \ ${output_log+--stdout} ${output_log} \ ${error_log+--stderr} $error_log \ + ${output_logger:+--stdout-logger \"$output_logger\"} \ + ${error_logger:+--stderr-logger \"$error_logger\"} \ ${pidfile:+--pidfile} $pidfile \ ${respawn_delay:+--respawn-delay} $respawn_delay \ ${respawn_max:+--respawn-max} $respawn_max \ -- cgit v1.2.3