This is how you can stay sync your server time with the world time from ntp.org
#/etc/rc.d/xntpd start
Installing from ports:
#cd /usr/ports/net/ntp
#make install
Once install, look for ntp readme
# more /usr/local/share/doc/pkg-readmes/ntp-4.2.6pl5p0
$OpenBSD: README,v 1.5 2012/04/22 11:41:55 ajacoutot Exp $
+-----------------------------------------------------------------------
| Running ntp-4.2.6pl5p0 on OpenBSD
+-----------------------------------------------------------------------
Several steps need to be taken to properly configure the NTP daemon.
1. First, create or update the file /etc/ntp.conf. Several
example configuration files can be found here:
/usr/local/share/examples/ntp
2. Now xntpd can be started with:
/etc/rc.d/xntpd start
Or to start 'xntpd' at every boot, add it to pkg_scripts in
/etc/rc.conf.local.
#vi /etc/rc.conf.local
Add as following :
pkg_scripts="xntpd"
#vi /etc/rc.conf.local
Add as following :
pkg_scripts="xntpd"
Edit /etc/ntp.conf as following :
server 3.my.pool.ntp.org
server 0.asia.pool.ntp.org
server 3.asia.pool.ntp.org
This will affect on your next reboot. To start xntpd simply type :
#/etc/rc.d/xntpd start
Comments