Hello!
I've set up a certbot renewal via the systemd timer, as following:
Code
~# cat /etc/systemd/system/snap.certbot.renew.timer
[Unit]
# Auto-generated, DO NOT EDIT
Description=Timer renew for snap application certbot.renew
Requires=snap-certbot-1670.mount
After=snap-certbot-1670.mount
X-Snappy=yes
[Timer]
Unit=snap.certbot.renew.service
OnCalendar=*-*-* 02:54
OnCalendar=*-*-* 21:42
[Install]
WantedBy=timers.target
~# cat /etc/systemd/system/snap.certbot.renew.service
[Unit]
# Auto-generated, DO NOT EDIT
Description=Service for snap application certbot.renew
Requires=snap-certbot-1670.mount
Wants=network.target
After=snap-certbot-1670.mount network.target snapd.apparmor.service
X-Snappy=yes
[Service]
EnvironmentFile=-/etc/environment
ExecStart=/usr/bin/snap run --timer="00:00~24:00/2" certbot.renew
SyslogIdentifier=certbot.renew
Restart=no
WorkingDirectory=/var/snap/certbot/1670
TimeoutStopSec=30
Type=oneshot
Alles anzeigen
I can see all the logs nice and tidy in `/var/log/letsencrypt/letsencrypt.log`.
How could I setup a notification that sends me an email about the SSL certs being renewed + logs from all the post-renewal-hooks that I have set up?