Here is instruction how to launch Nginx server after close unexpectedly.

1. Create /root/nginxfix.sh file with next content:

2. Make it executable chmod +x /root/nginxfix.sh
3. sudo crontab -e
4. Add crontab job. For 3 min period job will be next:

/var/log/nginxfix.log – log file

Let me know better approach in comments.


0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.