Bonjour à tous,
j’ai installé (y a 3 mois) un certificat SSL Let’s Encrypt avec certbox sur Debian 9
sudo apt-get install certbot python-certbot-apache
Tout fonctionne sauf le renouvellement automatique malgré le fichier crontab :
root@debian:~# cat /etc/cron.d/certbot
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew
Si je comprends bien… cette commande teste si /usr/bin/certbot est exécutable ET teste la NON présence du dossier /run/systemd/system pour exécuter le renouvellement.
S’il y a systemd alors certbot a aussi configuré un timer.
systemctl list-timers -all
NEXT LEFT LAST PASSED UNIT ACTIVATES
Fri 2020-06-19 17:39:00 CEST 11min left Fri 2020-06-19 17:09:01 CEST 18min ago phpsessionclean.timer phpsessionclean.service
Sat 2020-06-20 03:50:16 CEST 10h left Fri 2020-06-19 06:08:57 CEST 11h ago apt-daily.timer apt-daily.service
Sat 2020-06-20 04:22:56 CEST 10h left n/a n/a certbot.timer certbot.service
Sat 2020-06-20 06:34:07 CEST 13h left Fri 2020-06-19 06:02:47 CEST 11h ago apt-daily-upgrade.timer apt-daily-upgrade.service
n/a n/a n/a n/a systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
5 timers listed.
Pourquoi y a-t-il n/a ?
Que faire pour corriger la situation ?
Merci d’avance