iphone越狱设置定时重启解决方案

作者:袖梨 2022-06-25

iphone4s感觉好几天不重启会比较卡,就每天凌晨4点定时重启下系统吧。

1、ios定时任务配置文件

info.chenpeng.iphone.plist

image





Label
info.chenpeng.iphone.plist
POSIXSpawnType
Interactive
ProgramArguments

/var/mobile/chenpeng/cron.sh

StartCalendarInterval

Minute
0

LowPriorityIO

StandardErrorPath
/dev/null
StandardOutPath
/dev/null
UserName
root
KeepAlive

LaunchOnlyOnce

RunAtLoad


2、需要每小时跑任务的脚本

cron.sh

image

执行日志如下:

image

另外我还加了个每小时上传iphone系统信息、网络信息到服务器的任务,以防丢失,嘿嘿。

相关文章

精彩推荐