Añadir units de systemd para la ejecución periódica de Certbot

master
Daniel M. Lambea 2022-09-13 00:01:53 +01:00
parent eac62bc4a4
commit 3fd395a23f
Signed by: dmlambea
GPG Key ID: 4E02134A21505A2D
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[Unit]
Description=Certbot certificate renewal for Keycloak
Wants=certbot-keycloak.timer
[Service]
ExecStart=/opt/certbot/certbot-keycloak.sh
WorkingDirectory=/opt/certbot
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,11 @@
[Unit]
Description=Run certbot-keycloak service every 5 days since the last time the unit was activated
Requires=certbot-keycloak.service
[Timer]
Unit=certbot-keycloak.service
OnUnitInactiveSec=5days
AccuracySec=12h
[Install]
WantedBy=timers.target