File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / html / hints / solaris.xtra.S99ntpd
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 5 months ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

    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>