LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 598|回复: 0

scripts start failed after internet connect with network manager

[复制链接]
发表于 2009-11-4 01:26:20 | 显示全部楼层 |阅读模式
Hello everyone,
yesterday i start to use openntp. It's a best way to start ntpd when NetworkManager applet connects to the internet.

according to the wiki, i have script in /etc/NetworkManager/dispatcher.d/, but the script start failed when internet connects.

some information in /var/log/messages.log and daemon.log :
  1. Nov  2 21:58:35 arch nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/conky_weather' exited with error status 1.
  2. Nov  2 21:58:35 arch nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/ntpd' exited with error status 127.
复制代码


ntpd script:
  1. #!/bin/bash
  2. PID=`pidof -o %PPID /usr/bin/ntpd`

  3. if [ -z "$PID" ]; then
  4.        /usr/bin/ntpd -g
  5. fi
复制代码


and conky_weather:
  1. #!/bin/bash

  2. /usr/bin/conky -c /home/alvin/.conkyrc_weather
复制代码


any idea?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表