You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
324 B

#!/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