mobilizon.chapril.org-mobil.../support/runit/user/root_sv/mobilizon/run
Thomas Citharel 9d15e442af
Add runit config files
Closes #657

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-03-29 13:46:36 +02:00

10 lines
173 B
Bash
Executable File

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