Linux Study session eight week (March 26)

Source: Internet
Author: User

10.23 Linux Task Scheduler cron

Executes the command 3 o'clock in the morning every day and the task is scheduled to #crontab-e

0 3 * * */bin/bash/usr/local/sbin/123.sh >>/tmp/123.log 2>>/tmp/123.log


Every Monday, five of the even-numbered months of 1-5-day 3 o'clock in the morning executes the command, or #crontab-e

0 3 1-5 */2 1,3,5 /bin/bash/usr/local/sbin/123.sh>>/tmp/123.log 2>>/tmp/123. Log


Start Task Scheduler, #systemctl start Crond

See if it's running, #ps aux | grep cron or #systemctl status Crond

Stop running, #systemctl stop Crond


View specific task schedules, #crontab-l


-R Delete Task schedule, #crontab-R

-u Specify user, #crontab-u root


10.24 Chkconfig Tools


Boot Start Item

System service Directory is/ETC/INIT.D

Add service, Chkconfig--add Network

Delete Service, Chkconfig--del Network

Boot up, chkconfig--level 3 Network on

Boot does not start, chkconfig--level 345 network off

System services, 7 levels, 0-level shutdown, 1-level rescue mode, 234 for multi-user mode, 5 for graphical interface, 6 for restart;


10.25 SYSTEMD Management Services

Systemctl list-units--all--type=service lists all types of service;


10.26 Unit Introduction


10.27 Target Introduction


Extended

1. Anacron http://blog.csdn.net/strikers1982/article/details/4787226

2. XINETD (the default machine does not install this service, requires Yum install xinetd installation) http://blog.sina.com.cn/s/blog_465bbe6b010000vi.html

3. SYSTEMD Custom Startup script http://www.jb51.net/article/100457.htm


Linux Study session eight week (March 26)

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.