我们需要依据upsatart启动机制,在/etc/init.d/里面添加要增加的脚本
比如cat 》onlytest
echo “I am here!”
CTRL+D
然后修改文件权限
chmod a+x onlytest
最后运行系统的perl脚本
sudo updata-rc.d onlytest default 98
删除的方法
sudo update-rc.d -f test remove
我们需要依据upsatart启动机制,在/etc/init.d/里面添加要增加的脚本
比如cat 》onlytest
echo “I am here!”
CTRL+D
然后修改文件权限
chmod a+x onlytest
最后运行系统的perl脚本
sudo updata-rc.d onlytest default 98
删除的方法
sudo update-rc.d -f test remove