add runsvuserdir service
This commit is contained in:
parent
d5921ff8af
commit
e7fbb7fc17
2 changed files with 11 additions and 0 deletions
9
root/etc/sv/runsvuserdir/run
Executable file
9
root/etc/sv/runsvuserdir/run
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue