-if [ -x /etc/init.d/ntp ]; then
- if [ -x /usr/sbin/invoke-rc.d ]; then
- invoke-rc.d ntp stop
- for i in 1 2 3 4 5 6 7 8 9 0; do
- pgrep -u root -f /usr/sbin/ntpd >/dev/null && sleep 1 || break
- done
- invoke-rc.d ntp start
- else
- /etc/init.d/ntp stop
- for i in 1 2 3 4 5 6 7 8 9 0; do
- pgrep -u root -f /usr/sbin/ntpd >/dev/null && sleep 1 || break
- done
- /etc/init.d/ntp start
- fi
-fi