whitelist icon indicating copy to clipboard operation
whitelist copied to clipboard

Move cron to cron.d

Open T81 opened this issue 4 years ago • 0 comments

My pihole and whitelist installation is on an Ubuntu server. Not a Pi distro. Checking CRON logs (sudo grep CRON /var/log/syslog) I see no entry for whitelist job. The cron is installed in the user's crontab but the script relies on sudo. sudo asks for password prompt so it doesn't work on my server. I have moved the cron to /etc/cron.d/whitelist:

# Update whitelist at 01:00 on every 7th day-of-week
0 1 * * */7     root    PATH="$PATH:/usr/sbin:/usr/local/bin/" python3 /opt/whitelist/scripts/whitelist.py

T81 avatar Feb 04 '21 08:02 T81