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)