Skip to content

Commit

Permalink
logging script: add newlines, crunch output
Browse files Browse the repository at this point in the history
  • Loading branch information
jprjr committed Feb 19, 2019
1 parent 2b14146 commit aeac2d2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions overlay-rootfs/etc/services.d/socklog/log/run
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit aeac2d2

Please sign in to comment.