itamae/cookbooks/blog/files/etc/monit/conf.d/blog-log.conf

3 lines
146 B
Plaintext

check file nginx-blog with path /var/log/nginx/blog.access.log
if timestamp > 2 minutes for 5 cycles then exec "/bin/systemctl restart nginx"