dotfiles/configs/config-files/runsvdir-USER

9 lines
178 B
Text
Raw Permalink Normal View History

2023-12-29 15:23:31 +01:00
#!/bin/sh
export USER="<username>"
export HOME="/home/<username>"
groups="$(id -Gn "$USER" | tr ' ' ':')"
svdir="$HOME/service"
exec chpst -u "$USER:$groups" runsvdir "$svdir"