免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3402 | 回复: 1
打印 上一主题 下一主题

[其他] ubuntu 12.04 安装ntpd无法自动启动 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-08-07 13:44 |只看该作者 |倒序浏览
server:   Ubuntu 12.04 LTS  
          ntp-4.2.6p5
手动启动正常。

root@NTP-ubunt:~# more /etc/init/ntpd.conf # ntpd
#

description     "ntpd start daemon"

start on runlevel [2345]
stop on runlevel [!2345]

expect fork
respawn

exec ntpd

root@NTP-ubunt:~$ tail -n 25 /var/log/kern.log
Aug  7 09:03:15 NTP-ubunt kernel: [    4.728339] type=1400 audit(1344301395.660:10): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=783 comm="apparmor_parser"
Aug  7 09:03:15 NTP-ubunt kernel: [    4.944770] init: ntpd main process (841) terminated with status 1
Aug  7 09:03:15 NTP-ubunt kernel: [    4.944810] init: ntpd main process ended, respawning
Aug  7 09:03:15 NTP-ubunt kernel: [    5.008214] init: ntpd main process (860) terminated with status 1
Aug  7 09:03:15 NTP-ubunt kernel: [    5.008251] init: ntpd main process ended, respawning
Aug  7 09:03:15 NTP-ubunt kernel: [    5.011591] init: ntpd main process (862) terminated with status 1
Aug  7 09:03:15 NTP-ubunt kernel: [    5.011628] init: ntpd main process ended, respawning
Aug  7 09:03:15 NTP-ubunt kernel: [    5.016689] init: ntpd main process (864) terminated with status 1
Aug  7 09:03:15 NTP-ubunt kernel: [    5.016728] init: ntpd main process ended, respawning
Aug  7 09:03:15 NTP-ubunt kernel: [    5.021344] init: ntpd main process (866) terminated with status 1
Aug  7 09:03:15 NTP-ubunt kernel: [    5.021382] init: ntpd main process ended, respawning
Aug  7 09:03:15 NTP-ubunt kernel: [    5.026023] init: ntpd main process (86 terminated with status 1
Aug  7 09:03:15 NTP-ubunt kernel: [    5.026064] init: ntpd main process ended, respawning
Aug  7 09:03:15 NTP-ubunt kernel: [    5.030721] init: ntpd main process (870) terminated with status 1
Aug  7 09:03:15 NTP-ubunt kernel: [    5.030758] init: ntpd main process ended, respawning
Aug  7 09:03:15 NTP-ubunt kernel: [    5.035402] init: ntpd main process (872) terminated with status 1
Aug  7 09:03:15 NTP-ubunt kernel: [    5.035439] init: ntpd main process ended, respawning
Aug  7 09:03:15 NTP-ubunt kernel: [    5.039915] init: ntpd main process (874) terminated with status 1
Aug  7 09:03:15 NTP-ubunt kernel: [    5.039955] init: ntpd main process ended, respawning
Aug  7 09:03:15 NTP-ubunt kernel: [    5.044624] init: ntpd main process (876) terminated with status 1
Aug  7 09:03:15 NTP-ubunt kernel: [    5.044662] init: ntpd main process ended, respawning
Aug  7 09:03:15 NTP-ubunt kernel: [    5.049307] init: ntpd main process (87 terminated with status 1
Aug  7 09:03:15 NTP-ubunt kernel: [    5.049346] init: ntpd respawning too fast, stopped
Aug  7 09:03:16 NTP-ubunt kernel: [    5.217232] init: plymouth-upstart-bridge main process (747) killed by TERM signal
Aug  7 09:03:26 NTP-ubunt kernel: [   15.164635] eth0: no IPv6 routers present

论坛徽章:
0
2 [报告]
发表于 2012-08-09 17:47 |只看该作者
在upstart 中加了个脚本,sleep 30 && /usr/local/bin/ntpd 就可以了。

ntpd要在网络启动之后启。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP