show-runit/service/showlog/run

13 lines
324 B
Plaintext
Raw Normal View History

2016-07-16 16:09:54 +00:00
#!/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