rc.local问题?
Tofloor
poster avatar
misliang
deepin
2015-07-22 18:59
Author
为什么我使用#!/bin/bash开头写了一个shell脚本,相让他在系统启动时被执行。于是就在rc.local加上执行这个脚本的命令,结果却没有想象的那样,系统根本没有执行?
Reply Favorite View the author
All Replies
BingoLove
deepin
2015-07-22 19:07
#1
要给这个脚本可执行权限
chmod +x yourscript.sh
Reply View the author
misliang
deepin
2015-07-22 22:21
#2
https://bbs.deepin.org/post/31575
要给这个脚本可执行权限
chmod +x yourscript.sh

手动已经可以运行了,就是在添加到rc.local,系统记动时无法执行
Reply View the author
Lyvnee
deepin
2015-07-22 22:38
#3
根据我的经验,深度的 rc.local 是不起作用的,不过你可以使用 update-rc.d 命令
Reply View the author