how to have ntp service started at boot time?

jd1008 jd1008 at gmail.com
Sun Jul 26 16:24:11 UTC 2015



On 07/26/2015 09:46 AM, Paul Cartwright wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On 07/26/2015 11:04 AM, Bill Shirley wrote:
>> Put this at the bottom of /etc/chrony.conf:
>> # comment out allow and noclientlog above
>> # my stuff
>> allow 10.0.0.0/8
>> allow 192.168.0.0/16
>> allow 172.16.0.0/12
>> broadcast 60 192.168.4.255
>> broadcast 60 192.168.6.255
>>
>> (You may not want the broadcast statements).
>>
>> then: systemctl restart chrony.service
>>
>> You don't need ntpd.
>>
>> HTH,
>> Bill
> I think that should be
> systemctl restart chronyd.service

# systemctl enable ntpd.service
ln -s '/usr/lib/systemd/system/ntpd.service' 
'/etc/systemd/system/multi-user.target.wants/ntpd.service'
# systemctl start ntpd.service


More information about the users mailing list