You are viewing a single comment's thread from:

RE: Tips and Guidelines for the Noob Witness Setup

in #witness-category8 years ago (edited)

Thanks for the tips.
I've found that the crontab above does not always work because there are cases where the container just vanishes so a docker restart would do nothing.

So I changed the cron like this:
0 */2 * * * docker ps | grep feed && docker restart feed
*/5 * * * * docker ps | grep feed || (cd /opt/steemfeed-js && docker run -itd --rm --name feed steemfeed-js)

Sort:  

True. The docker container may crash sometimes. However, I monitor my servers and processes daily, so if anything goes wrong I fix it :)

I do the same, but it stresses me out when I wake up in the morning and see a Gina bot message saying my feed did not update for two hours some time during the night...

It's fine, you only need to publish a price feed once per 24h. I do mine every 6h, less than that is overkill.

Ah right