netcup-dns/cron.d/netcup-dns

12 lines
673 B
Plaintext

# Run command every 3min
# - https://crontab.guru/every-3-minutes
# `/etc/cron.d/` requires user field
# - https://unix.stackexchange.com/questions/458713/how-are-files-under-etc-cron-d-used#comment1019389_458715
# Some users report that files in `/etc/cron.d/` containing `-` are not executed
# - https://unix.stackexchange.com/questions/296347/crontab-never-running-while-in-etc-cron-d#comment640748_296351
# PATH is restricted to `/bin:/usr/bin` but `exec-notify` resides in `/usr/local/bin/`
# - https://serverfault.com/a/449652
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin/
*/3 * * * * root exec-notify netcup-dns > /var/log/netcup-dns.cron 2>&1