现在rc.local不起作用,那DEEPIN系统应该修改哪个文件?
Tofloor
poster avatar
y***z@tom.com
deepin
2016-12-09 21:13
Author
现在rc.local不起作用,那DEEPIN系统应该修改哪个文件?请达人指点一下。
Reply Favorite View the author
All Replies
avatar
paul1411
deepin
2016-12-09 21:39
#1
/etc/profile
Reply View the author
avatar
132******13
deepin
2016-12-10 02:56
#2
用systemd的service。我手机上不方便搜索,不过教程很多
Reply View the author
avatar
185******21
deepin
2016-12-10 04:53
#3
本帖最后由 icelee123 于 2016-12-9 20:59 编辑

rc.local怎么会没有作用。。我ss就再rc.local里面启动的。有个rc-local.service 专门执行rc.local的
icelee123@icelee123-x220:~$ cat /run/systemd/generator/multi-user.target.wants/rc-local.service
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.


# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
[Unit]
Description=/etc/rc.local Compatibility
ConditionFileIsExecutable=/etc/rc.local
After=network.target


[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no

Reply View the author