diff --git a/ovh-dns-updater.service b/ovh-dns-updater.service new file mode 100644 index 0000000..7241fba --- /dev/null +++ b/ovh-dns-updater.service @@ -0,0 +1,13 @@ +[Unit] +Description=Check DNS records at OVH +After=network-online.target +Wants=network-online.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/python3 -u /absolute/path/to/ovh-dns-udater.py +#StandardOutput=journal+console +StandardOutput=file:/var/log/foo/stdout +StandardError=file:/var/log/foo/stderr + + diff --git a/ovh-dns-updater.timer b/ovh-dns-updater.timer new file mode 100644 index 0000000..40f8431 --- /dev/null +++ b/ovh-dns-updater.timer @@ -0,0 +1,10 @@ +[Unit] +Description=run ovh-dns-updater periodically + +[Timer] +OnBootSec=180 +OnUnitActiveSec=900 +Persistent=true + +[Install] +WantedBy=timers.target