1
0
Fork 0
dotfiles/configs/config-files/runsvdir-USER

9 lines
178 B
Bash

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