dotfiles/void-install/sv/runsvdir/run

9 lines
173 B
Plaintext
Raw Normal View History

#!/bin/sh
USER=@USER@
HOME="home/$USER"
GROUPS="$(id -Gn "$USER" | tr ' ' ':')"
SVDIR="$HOME/sv"
exec chpst -u "$USER:$GROUPS" sh -l -c "exec runsvdir $SVDIR $USER" $USER