Iphone4s feel a few days do not restart will compare card, 4 o'clock in the morning every day to restart the system.
1, the iOS timing task configuration file
Info.chenpeng.iphone.plist
<?xml version= "1.0″encoding=" utf-8″?>
<! DOCTYPE plist Public "-//apple//dtd plist 1.0//en" "Http://www.apple.com/DTDs/PropertyList-1.0.dtd" >
<plist version= "1.0″>
<dict>
<key>Label</key>
<string>info.chenpeng.iphone.plist</string>
<key>POSIXSpawnType</key>
<string>Interactive</string>
<key>ProgramArguments</key>
<array>
<string>/var/mobile/chenpeng/cron.sh</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Minute</key>
<integer>0</integer>
</dict>
<key>LowPriorityIO</key>
<true/>
<key>StandardErrorPath</key>
<string>/dev/null</string>
<key>StandardOutPath</key>
<string>/dev/null</string>
<key>UserName</key>
<string>root</string>
<key>KeepAlive</key>
<false/>
<key>LaunchOnlyOnce</key>
<false/>
<key>RunAtLoad</key>
<false/>
</dict>
</plist>
2, need to run the task every hour script
cron.sh
The execution log is as follows:
In addition, I added an hourly upload of the iphone system information, network information to the server task, in case of loss, hehe.