Skip to content

Instantly share code, notes, and snippets.

@LuisPalacios
Created July 17, 2024 16:19
Show Gist options
  • Save LuisPalacios/d727698d2765d3276038aebdfe1e54af to your computer and use it in GitHub Desktop.
Save LuisPalacios/d727698d2765d3276038aebdfe1e54af to your computer and use it in GitHub Desktop.
ARSYS - API para modificar mi dominio DNS - systemctl service
# Fichero systemd:
# /etc/systemd/system/arsys_update.service
#
# Conjunto de tres ficheros
# /etc/systemd/system/arsys_update.timer
# /etc/systemd/system/arsys_update.service
# /usr/bin/arsys_update.py
#
# Ejecuta un script para consumir el API que permite
# hacer actualizaciones en el DNS de Arsys
#
# Para activarlo ver cdmon_update.timer
#
#
[Unit]
Description=Arsys DNS Update
Wants=network-online.target internet_wait.service
After=network-online.target internet_wait.service
[Service]
Type=simple
ExecStart=/usr/bin/arsys_update.py -u
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment