summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/runit-scripts-mv/runitscripts/services/ntpd/run
blob: 146c4e0b20a060da58e4b61d79557d3b196efaab (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions
stat_runit "Starting NTPD"
printhl "    Fetching time"
msg=`/usr/bin/ntpdate pool.ntp.org `
printhl "   $msg"

exec /usr/bin/ntpd -n -p /var/run/ntpd.pid 2>/dev/null