Scheduled reboot for EmbeddedLinux under the friendly arm Micro2440

Source: Internet
Author: User
The scheduled reboot of EmbeddedLinux under the friendly ARM Micro2440 recently used timed restart for the ARM server in the internship company, so I checked the relevant information today. I found that there was no specific method for my current development platform, so I developed a set of methods for you...
The scheduled reboot of Embedded Linux under the friendly ARM Micro2440 recently used timed restart for the ARM server in the internship company, so I checked the relevant information today. I found that there was no specific method for my current development platform, so I developed a set of methods for everyone to learn from each other. Embedded Linux under the friendly arm Micro2440 comes with the crontab command, but it is not enabled by default. You can refer to the following command to implement the timed restart function. # Config reboot time www.2cto.com 1. mkdir-p/var/spool/cron/crontabs/2. cp/sdcard/bin/root/var/spool/cron/crontabs/3. crond start4. crontab-l Command 1: Create a directory. the absolute path is/var/spool/cron/crontabs/, where all crontab configuration files are stored. Command 2: add a configuration file named "username as the file name" to the created directory. here, I copied the prepared configuration file www.2cto.com. Command 3: enable the cron service, from the file name, we found this is a daemon command 4: Display our configuration information. below is the information in the root of my configuration file: 0 4 *** reboot anyone who understands the crontab command knows that, the configuration information indicates that the reboot command is executed at four o'clock every morning.
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.