mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 14:02:53 +08:00
更新 SmartDNS 定时器
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# This configuration file is customized by fox,
|
||||
# Optimize SmartDNS crontab for local DNS server.
|
||||
|
||||
15 5 * * * /usr/bin/wget -q --tries=10 --retry-connrefused --random-wait https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns.d/anti-ad-smartdns.conf
|
||||
|
||||
20 5 * * * /usr/bin/systemctl restart smartdns.service
|
||||
|
||||
|
||||
## Or when the smartdns plugin is installed
|
||||
|
||||
15 5 * * * /usr/bin/wget -q --tries=10 --retry-connrefused --random-wait https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns.d/anti-ad-smartdns.conf
|
||||
|
||||
20 5 * * * /usr/bin/bash /opt/smartdns_plugin.sh
|
||||
|
||||
Reference in New Issue
Block a user