Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
关于开机启动服务
Experiences and Insight
932
views ·
0
replies ·
To
floor
Go
187******09
deepin
2018-03-23 19:58
Author
自己写了一个mount.sh脚本挂载win7的共享文件夹,然后在/etc/systemd/system写了一个mount.service想要开机自启这个脚本(内容如下)
[Unit]
Description=re_mount
Requires=network-online.target
After=network-online.target
[Service]
WorkingDirectory=/media/mabo-win7
ExecStart=/bin/sh /home/yj/Documents/Work/Scripts/sh/mount.sh
[Install]
WantedBy=multi-user.target
Copy the Code
问题是每次开机mount.service都是failed的,需要手动执行
systemctl start mount
Copy the Code
然后输入密码才行,请问怎么才能坐到开机自启mount服务,不需要输入密码
在线等,挺急的
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
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 Ranking
Change
How to fix grub boot menu that has disappeared?
Looking Deepin ci 25.2.0 Developer/Unstable repositories
Popular Events
More
在线等,挺急的