diff --git a/03.PVE系统调整.md b/03.PVE系统调整.md index e9c3b13..198fdfc 100644 --- a/03.PVE系统调整.md +++ b/03.PVE系统调整.md @@ -247,6 +247,13 @@ $ crontab -e ``` +系统全局定时任务排期状态可使用以下命令进行查看。 + +```bash +## 查看系统定时任务 +$ cronnext -acl +``` + ## 4. PVE 自动更新 ### 4.1.系统定时器 diff --git a/06.PVE制作DNS服务器.md b/06.PVE制作DNS服务器.md index 5ee33df..cf1580e 100644 --- a/06.PVE制作DNS服务器.md +++ b/06.PVE制作DNS服务器.md @@ -269,18 +269,7 @@ $ sudo /usr/local/bin/smartdns-cnlist $ sudo crontab -e ``` -在配置文件末尾,增加以下内容。 - -```bash -## 定时任务配置项 - -20 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/anti-ad.smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf - -30 9 * * * /usr/bin/systemctl restart smartdns.service - -``` - -若使用了 `SmartDNS` 加速规则的安装脚本,由于脚本自带服务重启功能,因此定时任务可修改如下。 +若使用了 `SmartDNS` 加速规则的安装脚本,由于脚本自带服务重启功能,因此定时任务可设置如下。 ```bash ## 定时任务配置项 @@ -290,11 +279,15 @@ $ sudo crontab -e 30 9 * * * /usr/local/bin/smartdns-cnlist ``` -系统全局定时任务排期状态可使用以下命令进行查看。 +若仅需定时重启 `SmartDNS` 服务,定时任务可调整如下。 ```bash -## 查看系统定时任务 -$ sudo cronnext -acl +## 定时任务配置项 + +20 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/anti-ad.smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf + +30 9 * * * /usr/bin/systemctl restart smartdns.service + ``` ### 6.3. SmartDNS 主配置