Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6900584
  • 博文数量: 3857
  • 博客积分: 6409
  • 博客等级: 准将
  • 技术积分: 15948
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-02 16:48
个人简介

迷彩 潜伏 隐蔽 伪装

文章分类

全部博文(3857)

文章存档

2017年(5)

2016年(63)

2015年(927)

2014年(677)

2013年(807)

2012年(1241)

2011年(67)

2010年(7)

2009年(36)

2008年(28)

分类: LINUX

2014-08-13 15:30:23

早就发现了,Arch的systemd提供的那个 rc-local.service 貌似有问题,rc.local不会执行。因为没用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

重启动检验。

阅读(433) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~