Annotation of embedaddon/ntp/html/hints/solaris.xtra.S99ntpd, revision 1.1

1.1     ! misho       1: #!/bin/sh
        !             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
        !            10:                 sleep 5
        !            11:                 /usr/local/bin/xntpd
        !            12:         fi
        !            13: else
        !            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 "
        !            18:                         /usr/bin/kill ${pid}
        !            19:                 fi     
        !            20:         fi
        !            21: fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>