aboutsummaryrefslogtreecommitdiff
path: root/sh
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 /sh
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 'sh')
-rw-r--r--sh/supervise-daemon.sh2
1 files changed, 2 insertions, 0 deletions
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 \