#!/bin/sh # file: showlog/run # Make the logs visible on `docker logs` command exec 2>&1 echo $(realpath $0) started # A little timeout is required, since svlogd moves current log to an archive, # and only after that it starts logging to the "new" current log. sleep 2 exec tail -fq /var/log/fakeapp*/current 2>/dev/null