summaryrefslogtreecommitdiff
path: root/contrib/runit/sfive-hub/run
blob: 42fafce4a17f855471639b808610a59ce872d808 (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 -ppipe="$RUN_D/ppipe"