Arch下systemd无法开机执行rc.local之解决方法
2014-09-06 14:59
239 查看
早就发现了,Arch的systemd提供的那个 rc-local.service 貌似有问题,rc.local不会执行。因为没用rc.local,一直没管。
解决方法源自这里,需要稍加改动: http://superuser.com/questions/278396/systemd-does-not-run-etc-rc-local
建立文件 /etc/systemd/system/rclocal.service (我怕和系统自带的service冲突,改了个名字),内容为:
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
干掉旧的service:
systemctl disable rc-local.service
上新的service:
systemctl enable rclocal.service
重启动检验。
解决方法源自这里,需要稍加改动: http://superuser.com/questions/278396/systemd-does-not-run-etc-rc-local
建立文件 /etc/systemd/system/rclocal.service (我怕和系统自带的service冲突,改了个名字),内容为:
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
干掉旧的service:
systemctl disable rc-local.service
上新的service:
systemctl enable rclocal.service
重启动检验。
相关文章推荐
- Archlinux systemd 开机执行rc.local
- Centos 7关于rc.local脚本命令开机不执行及指定用户启动的解决方法
- rc.local 不执行解决方法 开机启动
- CentOS 7 —— /etc/rc.local 开机不执行 - 解决方法
- 解决centos7 开机/etc/rc.local 不执行的问题
- Mac OS X 使用 rc.local 开机执行命令设置方法
- 解决centos7 开机/etc/rc.local 不执行的问题
- 解决Linux开机启动文件rc.local不能自动执行
- 解决centos7 开机/etc/rc.local 不执行的问题
- Linux开机启动文件rc.local无法执行,开机后手动可以启动文件
- 开机启动/etc/rc.local失效无效怎么办?解决方法
- 解决centos7 开机/etc/rc.local 不执行的问题
- word“对话框打开时命令无法执行”解决方法
- 今天Ubuntu空间不足,无法开机,使用下面的方法成功解决
- Scala可以在交互模式下运行但无法执行脚本的解决方法
- $.ajax返回的JSON无法执行success的解决方法
- 关于Flex4不生成mxml对应的html文件的解决方法-------无法打开"D:/MyEclipse 8.5/项目名称/WebRoot/WEB-INF/flex/local/zh_CN"
- 因为应用程序正在发送一个输入同步呼叫,所以无法执行传出的呼叫 -- 解决方法
- JQuery EasyUI弹出对话框解决Asp.net服务器控件无法执行后台代码的方法
- 双系统环境,对Ubuntu 10.04升级后,电脑无法正常开机的解决方法