Created
June 16, 2020 09:38
-
-
Save mskian/8091eacfb08cac9e4de0ae10bb32d2a2 to your computer and use it in GitHub Desktop.
Restart and Reload Nginx Every 24 Hours
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# == Cron Job == | |
# Run Every 24 Hours | |
# 0 */24 * * * /etc/sslnginx.sh > /dev/null 2>&1 | |
service nginx reload | |
sleep 1; | |
service nginx restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment