Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
求助:放在/etc/init.d/下的脚本不能自动执行
Experiences and Insight
666
views ·
4
replies ·
To
floor
Go
lo******11@sina.com
deepin
2017-10-04 19:36
Author
我在/etc/init.d/目录下放一个脚本,但是没有自动执行,在deepin要如何才能让脚本开机后自动执行?谢谢!!
Reply
Like 0
Favorite
View the author
All Replies
zouqilin
deepin
2017-10-04 19:58
#1
rc.local中调用你的脚本 init.d目录下的脚本一般针对是服务
Reply
Like 0
View the author
lo******11@sina.com
deepin
2017-10-04 20:09
#2
找到了,要在/etc/rc2.d/下创建软连接。 sudo ln -s /etc/init.d/demo.sh ./demo.sh ,测试后,正常启动了。谢谢大家 。
Reply
Like 0
View the author
Lyvnee
deepin
2017-10-04 20:15
#3
开机后在桌面新建一个文档,可以这么干
mkdir ~/.xsessionrc ##建立
echo "touch ~/Desktop/startup.txt" > ~/.xsessionrc ##写入
Copy the Code
Reply
Like 0
View the author
herdde
deepin
2017-10-04 20:25
#4
shell 脚本-深度科技论坛|深度操作系统正在为全世界的电脑提供强劲动力!
https://bbs.deepin.org/post/143522
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More