Centos 7 crontab

Source: Internet
Author: User

Crontab reads the/etc/crontab file and/etc/cron every minute by default. d/directory and/var/spool/cron/directory once. The format of the three tasks is consistent, only the tasks in the/var/spool/cron/directory need to be created using the crontab-e command. Different users will be created in the/var/spool/cron/user name file. However, the task configuration file is stored in the cron. d directory, not the executable file. Commands are generally used to create user tasks, and the other two are system tasks.

Centos 7 is in cron by default. 0 hourly is placed in the d directory, and the subject content is: 01 ***** root run-parts/etc/cron. hourly task to start anacron, and use anacron to check/etc/cron. daily,/etc/cron. weekly,/etc/cron. monthly directories (anacron cannot define tasks with a frequency of less than one day), instead of using the crontab configuration file in most versions to start the tasks of these three directories.

Cron is in the form of system service crond and in the system. It can be managed through/sbin/service, and Anacron is a general program.

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.