add runsvuserdir service

This commit is contained in:
Felix Van der Jeugt 2022-01-06 08:07:51 +01:00
parent d5921ff8af
commit e7fbb7fc17
No known key found for this signature in database
GPG Key ID: 58B209295023754D
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec vlogger -t runsvdir-ninewise

9
root/etc/sv/runsvuserdir/run Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
export USER=ninewise
export HOME=/home/ninewise
. $HOME/.profile
groups="$(id -Gn ninewise | tr ' ' ':')"
svdir="$HOME/service"
exec chpst -u "$USER:$groups" runsvdir "$svdir"