请问软路由怎么设置定时重启?
如题,有一台x86机器刷了istore os、希望大佬们教一下怎么设置每周定时重启一次。 计划任务 了解一下 用 which 查看需要执行的命令所在目录,比如:# which reboot
/sbin/reboot
然后用 crontab 部署,Linux/Unix 都支持
https://cloud.tencent.com/developer/article/1721958
登录 luci 后台 >> 系统 >> 计划任务,设置每周一凌晨2点自动重启
0 2 * * 1 /sbin/reboot
官网优避免重启循环的推荐计划任务指令:示例为每天4:30重启
# Reboot at 4:30am every day
# Note: To avoid infinite reboot loop, wait 70 seconds
# and touch a file in /etc so clock will be set
# properly to 4:31 on reboot before cron starts.
30 4 * * * sleep 70 && touch /etc/banner && reboot
页:
[1]