#!/command/execlineb
fdmove -c 2 1
s6-envdir env
multisubstitute {
importas -i CONTAINER_NAME CONTAINER_NAME
importas -i CONTAINER_USER CONTAINER_USER
}
multisubstitute {
define CONTAINER_TMPFS /run/containers/${CONTAINER_NAME}.${CONTAINER_USER}
# define CONTAINER_DATA /mnt/volumes/containers/user/${CONTAINER_USER}/${CONTAINER_NAME}
}
foreground { umount --recursive data/root }
foreground { rm -rf ${CONTAINER_TMPFS} }
foreground { sleep .1 } # let logger flush buffers
s6-svc -a log # rotate the log