Don't use .Xo/.Xc. Fix date format.
[netbsd-mini2440.git] / dist / ntp / html / build / hints / solaris.xtra.S99ntpd
blobd8058fd43d42e2fbc7fbfecc3e74a17dede9b8d6
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
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