summaryrefslogtreecommitdiffhomepage
path: root/packaging/s6/dispatch-api-log/run
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/s6/dispatch-api-log/run')
-rw-r--r--packaging/s6/dispatch-api-log/run6
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/s6/dispatch-api-log/run b/packaging/s6/dispatch-api-log/run
new file mode 100644
index 0000000..5d1b821
--- /dev/null
+++ b/packaging/s6/dispatch-api-log/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Logger for dispatch-api. Reads stdout from dispatch-api-srv and writes to
+# /var/log/dispatch-api/ using s6-log (auto-rotation, timestamping).
+
+exec /usr/bin/s6-setuidgid tradam \
+ /usr/bin/s6-log -b -d3 -- n10 s10000000 T /var/log/dispatch-api