Systemd Certbot Apache Timer
Version vom 27. Oktober 2017, 08:16 Uhr von Thomas (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=Service= */etc/systemd/system/certbot.service <pre> [Unit] Description=Let's Encrypt renewal [Service] Type=oneshot ExecStart=/usr/bin/certbot renew --pre-ho…“)
Service
- /etc/systemd/system/certbot.service
[Unit] Description=Let's Encrypt renewal [Service] Type=oneshot ExecStart=/usr/bin/certbot renew --pre-hook "/bin/systemctl stop httpd.service" --post-hook "/bin/systemctl start httpd.service" --quiet --agree-tos
Timer
- /etc/systemd/system/certbot.timer
[Unit] Description=Twice daily renewal of Let's Encrypt's certificates [Timer] OnCalendar=0/12:00:00 RandomizedDelaySec=1h Persistent=true [Install] WantedBy=timers.target