#!/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 < "$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