debianize-mobilizon/support/runit/user/root_sv/mobilizon/run

10 lines
173 B
Plaintext
Raw Normal View History

#!/bin/sh
export USER="mobilizon"
export HOME="/home/$USER"
groups="$(id -Gn "$USER" | tr ' ' ':')"
svdir="$HOME/service"
exec chpst -u "$USER:$groups" runsvdir "$svdir"