summaryrefslogtreecommitdiff
path: root/bin/s6-rclocal-make-logger
blob: dcd691b88903beb078181ada154522a575fda8c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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