Created
April 28, 2023 10:35
-
-
Save LuisPalacios/415e188233fa71e3651413580281839a to your computer and use it in GitHub Desktop.
Timer para API de actualización de IP del DNS gratis dinámico
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fichero systemd: | |
# /etc/systemd/system/cdmon_update.timer | |
# | |
# Esta unidad lanza cdmon_update.service, que consume el | |
# API de actualización de IP del DNS gratis dinámico | |
# de mi proveedor de dominios CDMON. | |
# | |
# Para activarlo ejecutar: | |
# systemctl enable cdmon_update.timer | |
# | |
# Documento un caso de uso en este apunte: | |
# https://www.luispa.com/administración/2023/04/08/networking-avanzado.html | |
# | |
[Unit] | |
Description=Ejecutar el script cdmon_update.sh | |
[Timer] | |
# Tiempo a esperar despues del boot para ejecutar por primera vez | |
OnBootSec=15 | |
# Cada cuanto tiempo entre ejecuciones | |
OnUnitActiveSec=5min | |
Unit=cdmon_update.service | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment