|
Lubuntu 命令添加 开机启动 程序
发表于 2015-9-19 15:12:47
浏览:11288
|
回复:9
打印
[复制链接]
楼主
Lubuntu 命令添加 开机启动 程序
1.编写程序启动shell脚本。/path/to/startfire.sh
比如:cat startfire.sh
!#/bin/bash
cd /path/to/your/process
sudo ./process
2.开机添加启动脚本命令
sudo vim /etc/init.d/rc.local
........
do_start(){
/path/to/starfire.sh &> /dev/null &
........
格式: 路径 &> /dev/null & |
|