vinloren
Posts: 36
Joined: Sun Aug 05, 2012 2:08 pm

ntpd apparently not working

Thu Aug 16, 2012 10:25 am

Hi everybody,
I have been working with wheezy-raspbian very nicely and then wanted to try ArchLinux too.
It took a while to get the system functioning but at the end the overal picture was quite satisfatorily as far speed / resources usage compared with raspbian... but still I have a problem: the ntpd appears not to be working at all despite all the configuration efforts I made following the ArchWiki related to ntp.

Has anyone of you come across similar problems and possible solutions?

Thanks, cheers
Vincenzo

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: ntpd apparently not working

Thu Aug 16, 2012 10:46 am

I use openntpd, don't think either requires config, except for your location in /etc/rc.conf and entry in DAEMONS line

vinloren
Posts: 36
Joined: Sun Aug 05, 2012 2:08 pm

Re: ntpd apparently not working

Thu Aug 16, 2012 12:07 pm

Actually I ended up installing openntpd configuring openntpd in the daemon line in /etc/rc.conf but it did not help since the rtc was'nt updated at all

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: ntpd apparently not working

Thu Aug 16, 2012 12:40 pm

No RTC. Add ! before that DAEMON entry, or delete it. I thought I added this, inc openntpd, to the rootfs?

vinloren
Posts: 36
Joined: Sun Aug 05, 2012 2:08 pm

Re: ntpd apparently not working

Thu Aug 16, 2012 1:58 pm

Eventually I got openntpd working after added these two scripts:

/etc/wicd/scripts/postconnect/openntpd-start.sh -> #!/bin/sh /etc/rc.d/openntpd start
/etc/wicd/scripts/predisconnect/openntpd-stop.sh -> #!/bin/sh /etc/rc.d/openntpd stop
and made them executable

I forgot to mention my network is accesible via WiFi / wicd

Cheers
Vincenzo

Return to “Arch”