Description of problem: In the Date & Time settings, network time can be enabled without ntp-client being installed. It appears to work only if ntp-client is installed, but g-c-c does not require ntp-client. Version-Release number of selected component (if applicable): 3.6.3 How reproducible: Always Steps to Reproduce: 1. Go to Settings > Date & Time 2. Switch Network Time to On 3. Reproducible: Steps to Reproduce:
Assignee: bugsquad => olav
Please, have a look to http://en.wikipedia.org/wiki/Ntpdate and the whole thread https://www.mageia.org/pipermail/mageia-dev/2013-February/022737.html especially https://www.mageia.org/pipermail/mageia-dev/2013-February/022746.html If you want always call ntpdate, use alias ntpdate='ntpd -gq' IMO, this bug report should be closed if these explanations are correct.
CC: (none) => jarillon
@1: how is this related to my bug report? One way or another, the Network Time switch should just work.
currently ntp package (ntpd server) requires ntp-client (ntpdate); however ntpdate cannot work if ntpd is running. ntpdate synchronizes date once; while ntpd does it continously (eg they are similar to anacron vs cron, or cache dns vs full named setup). so imho "ntp" package should also provide "ntp-client", and an ntpdate script be provided in "ntp" package to allow one-shot run (in case ntpd is not running), or tell the daemon to do a synchronization now (if it is running)
CC: (none) => pablo
Hardware: x86_64 => All
actually "gnome-control-center datetime" only requires systemd (the communication is done trough dbus). it is systemd that does the necessary; of course, for NTP support the proper packages must be installed. Having a requirement for "ntp" package in the gnome-control-center is imho wrong as it would be needed only if you want to use ntp; there are already too much unconditional requirements that are most of the time not used. the distribution tool to set the date (drakclock) does triggers the right package if needed and do the right thing. maybe you can propse an enhancement to systemd that if a request to use ntp is set trough dbus, and ntpd or equivalent is not present, then push a message to a packagekit service to obtain the package? PS: I also just submitted a patch that will make drakclock cooperate (by using the approrpaite systemd dbus service) with gnome-control-center and other date/time tools; see on bug #6056
Depends on: (none) => 605
(In reply to Pablo Saratxaga from comment #4) > Having a requirement for "ntp" package in the gnome-control-center is imho > wrong as it would be needed only if you want to use ntp; there are already > too much unconditional requirements that are most of the time not used. At least, a "suggests" is in desirable. And, if NTP isn't available, the NTP switch shouldn't pretend to work. > PS: I also just submitted a patch that will make drakclock cooperate (by > using the approrpaite systemd dbus service) with gnome-control-center and > other date/time tools; see on bug #6056 Nice :)
Submitted gnome-control-center-3.10.1-3.mga4 with suggests on ntp.
Status: NEW => RESOLVEDResolution: (none) => FIXED
We're switching to chrony as the default ntp client for Mageia 4, so a suggests on ntp probably isn't appropriate.