de-p1st-monitor/cron.d/de-p1st-monitor
2023-06-15 16:26:11 +02:00

12 lines
684 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 de-p1st-monitor > /var/log/de-p1st-monitor.cron 2>&1