summaryrefslogtreecommitdiff
path: root/contrib/runit/sfive-hub/run
blob: cdcd27b10c33fdea69b2e72821360cd6d02350f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

exec 2>&1
RUN_D="/var/run/sfive"
if [ ! -d "$RUN_D" ]; then
  mkdir -p -m0750 "$RUN_D"
fi
chown sfive:sfive "$RUN_D"
rm -f "$RUN_D/pipegram"
umask 002
exec chpst -u sfive:sfive /usr/bin/sfive-hub -start-web-server=false -start-pipe-server=false -pipegram="$RUN_D/pipegram" -forward-url="http://stream.elevate.at:9000"