diff --git a/03.PVE系统调整.md b/03.PVE系统调整.md index 74eb93a..d05b40f 100644 --- a/03.PVE系统调整.md +++ b/03.PVE系统调整.md @@ -213,7 +213,7 @@ $ crontab -e ```bash ## 定时任务配置项 -0 5 1,16 * * /usr/sbin/reboot +30 2 1,16 * * /usr/sbin/reboot ``` @@ -223,7 +223,7 @@ $ crontab -e 配置系统自动更新之前,需检查系统当前定时器状态。 -后续将手动调整该定时器的时间,使其每 `5` 天凌晨 `02:00` 进行触发。 +后续将手动调整该定时器的时间,使其每 `5` 天凌晨 `01:30` 进行触发。 ```bash ## 检查系统定时器 @@ -305,7 +305,7 @@ $ nano /etc/apt/apt.conf.d/50unattended-upgrades - 自动重启:开启。 -- 自动重启时间:`05:00` 。 +- 自动重启时间:`02:30` 。 因为该配置文件很长,完整的配置文件可查看 [pve_50unattended_upgrades.conf](./src/pve_50unattended_upgrades.conf) 以便对比。 @@ -334,7 +334,7 @@ Unattended-Upgrade::Remove-Unused-Dependencies "true"; Unattended-Upgrade::Automatic-Reboot "true"; -Unattended-Upgrade::Automatic-Reboot-Time "05:00"; +Unattended-Upgrade::Automatic-Reboot-Time "02:30"; ``` @@ -356,7 +356,7 @@ $ systemctl edit apt-daily-upgrade.timer [Timer] OnCalendar= -OnCalendar=02:00 +OnCalendar=01:30 RandomizedDelaySec=0 ``` @@ -375,14 +375,13 @@ $ systemctl status apt-daily-upgrade.timer Loaded: loaded (/lib/systemd/system/apt-daily-upgrade.timer; enabled; preset: enabled) Drop-In: /etc/systemd/system/apt-daily-upgrade.timer.d └─override.conf - Active: active (waiting) since Sun 2023-06-25 14:35:06 CST; 9s ago - Until: Sun 2023-06-25 14:35:06 CST; 9s ago - Trigger: Mon 2023-06-26 02:00:00 CST; 11h left + Active: active (waiting) since Wed 2023-07-26 14:38:06 CST; 11s ago + Trigger: Thu 2023-07-27 01:30:00 CST; 10h left Triggers: ● apt-daily-upgrade.service -Jun 25 14:35:06 node01 systemd[1]: Stopped apt-daily-upgrade.timer - Daily apt upgrade and clean activities. -Jun 25 14:35:06 node01 systemd[1]: Stopping apt-daily-upgrade.timer - Daily apt upgrade and clean activities... -Jun 25 14:35:06 node01 systemd[1]: Started apt-daily-upgrade.timer - Daily apt upgrade and clean activities. +Jul 26 14:38:06 node01 systemd[1]: Stopped apt-daily-upgrade.timer - Daily apt upgrade and clean activities. +Jul 26 14:38:06 node01 systemd[1]: Stopping apt-daily-upgrade.timer - Daily apt upgrade and clean activities... +Jul 26 14:38:06 node01 systemd[1]: Started apt-daily-upgrade.timer - Daily apt upgrade and clean activities. ``` ## 5.硬件直通 diff --git a/05.PVE制作虚拟机模板.md b/05.PVE制作虚拟机模板.md index a561251..b6fd7db 100644 --- a/05.PVE制作虚拟机模板.md +++ b/05.PVE制作虚拟机模板.md @@ -354,7 +354,7 @@ Unattended-Upgrade::Remove-Unused-Dependencies "true"; Unattended-Upgrade::Automatic-Reboot "true"; -Unattended-Upgrade::Automatic-Reboot-Time "04:30"; +Unattended-Upgrade::Automatic-Reboot-Time "03:00"; ``` @@ -406,7 +406,7 @@ $ sudo crontab -e ```bash ## 定时任务配置项 -0 6 8,24 * * /usr/sbin/reboot +30 4 8,24 * * /usr/sbin/reboot ``` diff --git a/06.PVE用模板克隆虚拟机.md b/06.PVE用模板克隆虚拟机.md index 58a4c72..f3c853b 100644 --- a/06.PVE用模板克隆虚拟机.md +++ b/06.PVE用模板克隆虚拟机.md @@ -171,7 +171,7 @@ $ sudo crontab -e ```bash ## 定时任务配置项 -0 5 * * * /usr/bin/snap restart adguard-home +30 4 * * * /usr/bin/snap restart adguard-home ``` diff --git a/src/debian_50unattended_upgrades.conf b/src/debian_50unattended_upgrades.conf index 81d7953..9527088 100644 --- a/src/debian_50unattended_upgrades.conf +++ b/src/debian_50unattended_upgrades.conf @@ -173,5 +173,5 @@ Unattended-Upgrade::Remove-Unused-Dependencies "true"; Unattended-Upgrade::Automatic-Reboot "true"; -Unattended-Upgrade::Automatic-Reboot-Time "04:30"; +Unattended-Upgrade::Automatic-Reboot-Time "03:00"; diff --git a/src/pve_50unattended_upgrades.conf b/src/pve_50unattended_upgrades.conf index 7e497ba..a719c94 100644 --- a/src/pve_50unattended_upgrades.conf +++ b/src/pve_50unattended_upgrades.conf @@ -175,5 +175,5 @@ Unattended-Upgrade::Remove-Unused-Dependencies "true"; Unattended-Upgrade::Automatic-Reboot "true"; -Unattended-Upgrade::Automatic-Reboot-Time "05:00"; +Unattended-Upgrade::Automatic-Reboot-Time "02:30"; diff --git a/src/pve_apt_daily_upgrade.conf b/src/pve_apt_daily_upgrade.conf index 7453f21..0f3b3d1 100644 --- a/src/pve_apt_daily_upgrade.conf +++ b/src/pve_apt_daily_upgrade.conf @@ -3,7 +3,7 @@ [Timer] OnCalendar= -OnCalendar=02:00 +OnCalendar=01:30 RandomizedDelaySec=0 ### Lines below this comment will be discarded