summaryrefslogtreecommitdiff
path: root/contrib/runit/sfive-hub/run
blob: b9a6ccd36497d280a6047fc21dadc402de3ed724 (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 -bind="127.0.0.1:9000"