summaryrefslogtreecommitdiff
path: root/bin/s6-rclocal-make-logger
diff options
context:
space:
mode:
Diffstat (limited to 'bin/s6-rclocal-make-logger')
-rwxr-xr-xbin/s6-rclocal-make-logger14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/s6-rclocal-make-logger b/bin/s6-rclocal-make-logger
new file mode 100755
index 0000000..dcd691b
--- /dev/null
+++ b/bin/s6-rclocal-make-logger
@@ -0,0 +1,14 @@
+#!/bin/sh
+for s in *-log; do
+ echo 3 > "$s"/notification-fd
+ echo longrun > "$s"/type
+ echo "${s%log}"pipeline > "$s"/pipeline-name
+ echo "${s%-log}" > "$s"/consumer-for
+ echo "$s" > "${s%-log}"/producer-for
+ cat <<EOF > "$s"/run
+#!/bin/execlineb -P
+exec -c
+s6-log -d3 -- T /home/samn/.local/state/s6/logs/${s%-log}
+EOF
+ chmod +x "$s"/run
+done