Container lifecycle

Here is what is working for me:

#!/bin/bash
readonly LOG_LOCATION=/eio-data/watchdog-${RESIN_SERVICE_NAME}.log
exec > >(tee -a -i $LOG_LOCATION)
exec 2>&1

echo `date` "Info: starting watchdog for healthcheck"

I have tested using two tee’s:

#!/bin/bash
readonly LOG_LOCATION=/eio-data/watchdog-${RESIN_SERVICE_NAME}.log
exec > >(tee -a -i $LOG_LOCATION | tee -i /dev/console)
exec 2>&1

echo `date` "Info: starting watchdog for healthcheck"

And that works to add the healthcheck output to the dashboard console with the service name label.
Thanks!

@jason10, thanks for sharing your solution!

@jason10, thanks for sharing your solution!