summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/ntpd/run
blob: ce1ff123990bf759b406d18219109565866d7cca (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