linux开机启动程序加载的shell script

/etc/rc.d/rc.local这个脚本中可以存放用户自定义的开机程序。

[root@localhost rc.d]# cat rc.local

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local


上面这段的意思是:

该脚本将在所有其他初始化脚本执行完后执行。

用户可以将自己的初始化任务放在该脚本内,如果不想使用完全Sys V形式的初始化任务时。

什么叫做 Sys V style呢?



原文地址:https://www.cnblogs.com/cnsec/p/3789793.html