Ajout : etc/sv/fanout/ .
[lhc/ateliers.git] / etc / sv / fanout / log / run
diff --git a/etc/sv/fanout/log/run b/etc/sv/fanout/log/run
new file mode 100644 (file)
index 0000000..4382b39
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh -eux
+sv=${PWD%/log}
+sv=${sv#/etc/sv/}
+eval home="~log-$sv"
+
+cd "$home"
+exec chpst -u log-"$sv":log-"$sv" \
+       svlogd -v -tt "$home"