From aeac2d217074d0a3e5a165b781021cf87c453452 Mon Sep 17 00:00:00 2001 From: John Regan Date: Tue, 19 Feb 2019 17:00:06 -0500 Subject: [PATCH] logging script: add newlines, crunch output --- overlay-rootfs/etc/services.d/socklog/log/run | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/overlay-rootfs/etc/services.d/socklog/log/run b/overlay-rootfs/etc/services.d/socklog/log/run index 4d95375..5271d78 100755 --- a/overlay-rootfs/etc/services.d/socklog/log/run +++ b/overlay-rootfs/etc/services.d/socklog/log/run @@ -4,12 +4,14 @@ backtick -i -n LOGGING_SCRIPT { pipeline { pipeline { s6-ls -0 -- /etc/socklog.rules } s6-sort -0 } forstdin -0 -- i - importas -u i i - redirfd -rb 0 /etc/socklog.rules/${i} - s6-cat + if { + importas -u i i + redirfd -rb 0 /etc/socklog.rules/${i} + s6-cat + } s6-echo } -importas -u -s LOGGING_SCRIPT LOGGING_SCRIPT +importas -C -u -s LOGGING_SCRIPT LOGGING_SCRIPT s6-setuidgid nobody s6-log -bp $LOGGING_SCRIPT