Añadir units de systemd para la ejecución periódica de Certbot
parent
eac62bc4a4
commit
3fd395a23f
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue