add runsvuserdir service
This commit is contained in:
parent
d5921ff8af
commit
e7fbb7fc17
2
root/etc/sv/runsvuserdir/log/run
Executable file
2
root/etc/sv/runsvuserdir/log/run
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec vlogger -t runsvdir-ninewise
|
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…
Reference in New Issue
Block a user