文件打开后显示如下:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# 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
此脚本在每个多用户运行水平的最后开始运行(英文水平不行,只能翻译成这样,“each multiuser runlevel”我也不知道什么意思“)
在exit 0 之前,可以添加启动的脚本代码。
rc.local 只能启动服务,不能启动 图形界面的程序!(http://wxianfeng.com/2010/12/22/ubuntu-rc-local)