#!/bin/sh SOURCES="av-orig av-en" PROFILES="mini low medium high" if [ -z "$1" ]; then echo "Usage $0 " exit 1 fi name=$1 OUT_D=runit rm -rf "$OUT_D" mkdir -p "$OUT_D" for src in $SOURCES; do for profile in $PROFILES; do echo "creating runit instance for $src - $profile" DIR="$OUT_D/hls-$name-$src-$profile" mkdir -p "$DIR/log" cat >> "$DIR/run" <&1 exec chpst -u flumotion:flumotion /usr/local/bin/start-hls.sh "$name" "$src" "$profile" EOF chmod +x "$DIR/run" cat >> "$DIR/log/run" <