summaryrefslogtreecommitdiff
path: root/contrib/runit/sfive-hub/run
blob: dde9b394b054caa447540131861b229285e59faa (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"