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