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

3 lines
146 B
Plaintext
Raw Normal View History

2019-03-03 08:50:49 +00:00
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"