在/etc/rc.local加上的启动项目,在每个runlevel都生效吗?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
木泥黑
帖子: 1339
注册时间: 2008-10-18 12:41

在/etc/rc.local加上的启动项目,在每个runlevel都生效吗?

#1

帖子 木泥黑 » 2009-02-16 11:29

在/etc/rc.local加上的启动项目,在每个runlevel都生效吗?
头像
catbody
帖子: 72
注册时间: 2008-11-09 13:23

Re: 在/etc/rc.local加上的启动项目,在每个runlevel都生效吗?

#2

帖子 catbody » 2009-04-29 21:53

代码: 全选

cat /etc/rc.local 
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of [color=#FF0000]each multiuser runlevel[/color].
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

exit 0
古来神仙皆寂寞
唯有水者留其名
回复