#!/bin/bash # it is not possible to pass environment variables to runit # so we just save them in a file which we can source from # run scripts. export > /etc/envvars exec /usr/bin/runsvdir /etc/runit/runsvdir/default