Skip to content

Instantly share code, notes, and snippets.

@LuisPalacios
Created July 17, 2024 16:20
Show Gist options
  • Save LuisPalacios/8cba4bd4a70b77c21cf63bee6759e3ef to your computer and use it in GitHub Desktop.
Save LuisPalacios/8cba4bd4a70b77c21cf63bee6759e3ef to your computer and use it in GitHub Desktop.
ARSYS - API para modificar mi dominio DNS - systemctl timer
# Fichero systemd:
# /etc/systemd/system/arsys_update.timer
#
# Conjunto de tres ficheros
# /etc/systemd/system/arsys_update.timer
# /etc/systemd/system/arsys_update.service
# /usr/bin/arsys_update.py
#
# Esta unidad lanza arsys_update.service, que realiza
# actualizaciones en el DNS de Arsys a través de API
#
# Para activarlo ejecutar:
# systemctl daemon-reload
# systemctl enable arsys_update.timer
#
[Unit]
Description=Timer arsys_update.service
[Timer]
# Tiempo a esperar despues del boot para ejecutar por primera vez
OnBootSec=30
# 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