|
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? |
|