summaryrefslogtreecommitdiff
path: root/contrib/runit/sfive-hub/run
blob: e5ccd1761f8f03c51973ebe6195dd1d65030d175 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/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"
exec chpst -u sfive:sfive /usr/bin/sfive-hub -start-web-server=false -start-pipe-server=false -pipegram="$RUN_D/pipegram"