I followed the sets in https://forums.freenas.org/index.ph...x-php-fpm-and-mysql.17786/page-62#post-341153 by @KevDog . But I'm still getting notices from lets encrypt that my ssl cert is going to expire. I thought that the crontab would run daily and renew the ssl when it's up for renewal.
my crontab
My /etc/periodic/daily/220.LetsEncrypt-SSL-Renewal file.
my crontab
Code:
# /etc/crontab - root's crontab for FreeBSD # # $FreeBSD: releng/10.3/etc/crontab 194170 2009-06-14 06:37:19Z brian $ # SHELL=/bin/sh #PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/etc:/usr/local/sbin # #minute hour mday month wday who command # */5 * * * * root /usr/libexec/atrun # # Save some entropy so that /dev/random can re-seed on boot. #*/11 * * * * operator /usr/libexec/save-entropy # # Rotate log files every hour, if necessary. 0 * * * * root newsyslog # # Perform daily/weekly/monthly maintenance. 1 3 * * * root periodic daily 15 4 * * 6 root periodic weekly 30 5 1 * * root periodic monthly # # Adjust the time zone if the CMOS clock keeps local time, as opposed to # UTC time. See adjkerntz(8) for details. 1,31 0-5 * * * root adjkerntz -a
My /etc/periodic/daily/220.LetsEncrypt-SSL-Renewal file.
Code:
#!/bin/sh /usr/local/bin/certbot renew --quiet --pre-hook "service nginx stop" --post-hook "service nginx start"
Code:
-rwxr-xr-x 1 root wheel 114 Jun 22 22:08 220.LetsEncrypt-SSL-Renewal