veket官方网站论坛

veket

 找回密码
 要注册
搜索
查看: 784|回复: 2

如何定时重启

[复制链接]
发表于 2021-5-20 16:40 | 显示全部楼层 |阅读模式
这个系统如何定时重启?
在计划任务里添加过“30 21 * * * reboot"或“30 21 * * * /sbin/reboot",但都不起作用。
发表于 2021-5-20 19:59 | 显示全部楼层
用crond
/etc/init.d/crond
可以写个菜单放在/etc/xdg/autostart/
下边,启动
例如脚本:
  1. #!/bin/sh
  2. and running
  3. if [ -x /etc/init.d/crond ] ; then
  4.         /etc/init.d/crond restart
  5. fi
复制代码

这样计划任务就生效了
发表于 2021-5-20 20:04 | 显示全部楼层
cron-v111.pet (624 Bytes, 下载次数: 6)
附件的pet就是让计划任务生效的。
可以试着安装。
您需要登录后才可以回帖 登录 | 要注册

本版积分规则

QQ|手机版|Archiver|veket官方网站论坛 ( 粤ICP备 11052856 )

GMT+8, 2024-5-8 20:57

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表