+ -
当前位置:首页 → 问答吧 → scripts start failed after internet connect with network manager

scripts start failed after internet connect with network manager

时间:2009-11-04

来源:互联网

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 :
代码:
Nov 2 21:58:35 arch nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/conky_weather' exited with error status 1.
Nov 2 21:58:35 arch nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/ntpd' exited with error status 127.
ntpd script:
代码:
#!/bin/bash
PID=`pidof -o %PPID /usr/bin/ntpd`

if [ -z "$PID" ]; then
 /usr/bin/ntpd -g
fi
and conky_weather:
代码:
#!/bin/bash

/usr/bin/conky -c /home/alvin/.conkyrc_weather
any idea?

作者: alvin_rxg   发布时间: 2009-11-04

热门下载

更多