Skip to content

Instantly share code, notes, and snippets.

@LuisPalacios
Created April 28, 2023 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuisPalacios/415e188233fa71e3651413580281839a to your computer and use it in GitHub Desktop.
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
# 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