[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What package contains the time daemon?



Am 26.07.2015 um 13:44 schrieb Chris Bannister:
> On Sun, Jul 26, 2015 at 02:03:48AM +0200, Michael Biebl wrote:
>> Am 25.07.2015 um 21:26 schrieb Holger Schramm:
>>> Am 25.07.2015 um 20:52 schrieb John J. Boyer:
>>>> I am wondering if my Jessie system is updating its clock regularly. It 
>>>> gives a 
>>>> different time than my Windows box. What package contains the daemon 
>>>> that updates the time from a central site?
>>>
>>> If you are using systemd, look for timedatectl. Settings are at
>>> /etc/systemd/timesyncd.conf
>>
>> In most cases, simply running "systemctl enable systemd-timesyncd" and
>> starting it via "systemctl start systemd-timesyncd" should be
>> sufficient. In stretch, systemd-timesyncd is actually enabled by
>> default, for jessie, you need to enable it explicitly.
> 
> I think that answers my other post in this thread.
> Does that mean, once enabled, the package ntp can be purged?

Yes. You actually need to do that. As long as ntp is installed,
systemd-timesyncd won't start.
The assumption here is, that if the admin explicitly installed ntp, it
should be preferred of systemd-timesyncd.
See

 #
/lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf
[Unit]
# don't run timesyncd if we have another NTP daemon installed
ConditionFileIsExecutable=!/usr/sbin/ntpd
ConditionFileIsExecutable=!/usr/sbin/openntpd
ConditionFileIsExecutable=!/usr/sbin/chronyd



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: