I am trying to configure an NTP server in a local network that doesn't has access to internet (I need all the machines to have the same time even if wrong) .
I have configured the /etc/ntp.conf files for both clients and servers.
On the system startup I run ntpd -qgx
to sync the time at startup to make the sync faster and then I run ntpd
to continue syncing.
However it is sometimes successfully being synced while a other times it gives me :
select() returned -1: Interrupted system call
select() returned -1: Interrupted system call
1 Jan 00:02:56 ntpd[2599]: ntpd: no servers found
I really tried to get a pattern to understand when it fails... but no success for me it is totally random.
When I tried to work with google's NTP server it looked good and indeed synced each time
Does any one has faced such issue? any ideas?
my ntp.conf files:
server :
#Use the local clock
server 127.127.1.0
fudge 127.127.1.0 stratum 0
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
# Give localhost full access rights
restrict 127.0.0.1
# Give machines on our network access to query us
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
client:
#Point to our network's master time server
server 192.168.1.102
#restrict default ignore
restrict 127.0.0.1
restrict 192.168.1.102 mask 255.255.255.255 nomodify notrap noquery
tos orphan 16
driftfile /var/lib/ntp/drift