2 if [ $1 = "start" ]; then
3 if [ -x /usr
/local
/bin
/xntpd
]; then
4 echo "Starting NTP daemon, takes about 1 minute... "
5 # dosynctodr may need to be left alone as of with Solaris 2.6
6 # The following line is unnecessary if you turn off
7 # dosynctodr in /etc/system.
8 /usr
/local
/bin
/tickadj
-s
9 /usr
/local
/bin
/ntpdate
-v server1 server2
14 if [ $1 = "stop" ]; then
15 pid
=`/usr/bin/ps -e | /usr/bin/grep xntpd | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
16 if [ "${pid}" != "" ]; then
17 echo "Stopping Network Time Protocol daemon "