Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
30.3. 在引导时运行其他的程序
/etc/rc.d/rc.local
脚本是在引导时被 init
命令执行或者是在切换运行级别时被执行。你可以在这个脚本的最后加入命令来执行某些必需的任务,如启动特殊的服务或初始化设备,而不需要在 /etc/rc.d/init.d/
目录里编写复杂的初始化脚本并创建符号链接。
The
/etc/rc.serial
script is used if serial ports must be setup at boot time. This script runs setserial
commands to configure the system's serial ports. Refer to the setserial
man page for more information.