Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
deepin为什么没有rc.local啊
Experiences and Insight
4069
views ·
3
replies ·
To
floor
Go
zst
deepin
2017-05-12 19:38
Author
/etc/rc.local 为什么不存在啊qaq
Reply
Like 0
Favorite
View the author
All Replies
deepinheart
deepin
2017-05-12 19:46
#1
linux启动千差万别,不一定要rc.local,名字不一样也可以,从init开始按照启动脚本顺序执行就行了
Reply
Like 0
View the author
hfx
deepin
2017-09-22 19:10
#2
Deepin 版本 15.4.1
想让某个程序开机启动,习惯性的去修改 /etc/rc.local 因为以前在 Ubuntu 都是这么干的
可是一看 /etc/ 目录下并没有 rc.local 文件,于是我尝试了一下手工建立 rc.local
sudo vim /etc/rc.local
Copy the Code
在文件里输入如下内容(参照 Ubuntu 的 rc.local)
#!/bin/sh -e
# 在 exit 0 之前添加你的开机启动程序
exit 0
Copy the Code
给文件赋可执行权限
sudo chmod a+x /etc/rc.local
Copy the Code
然后重启电脑,发现 rc.local 可以正确执行
Reply
Like 0
View the author
duanyao
deepin
2017-09-22 19:30
#3
因为 deepin 用 systemd 了,标准的做法是把你的任务写成 systemd 服务。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[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 Ranking
Change
Four agent skills for laptop power, sleep, and honest bug reports
Installing qemu-user breaks deepin
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More