diff options
Diffstat (limited to 'os/etc/s6-rc/runas')
| -rwxr-xr-x | os/etc/s6-rc/runas | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/os/etc/s6-rc/runas b/os/etc/s6-rc/runas new file mode 100755 index 0000000..52b494b --- /dev/null +++ b/os/etc/s6-rc/runas @@ -0,0 +1,15 @@ +#!/bin/execlineb -S1 + +envfile /etc/s6-rc/config/user.conf +importas -iu USER USER + +s6-setuidgid ${USER} + +s6-envdir /run/session-env + +importas -i home HOME +execline-cd ${home} + +#foreground { fdmove -c 1 2 echo "+" "user:" ${USER} } +#foreground { fdmove -c 1 2 echo "+" "command:" ${@} } +exec ${@} |