The officially official Devuan Forum!

You are not logged in.

#1 2023-11-18 10:09:40

aluma
Member
Registered: 2022-10-26
Posts: 533  

[SOLVED] Ntpsec.

In the days of classic NTP there was a simple client program that synchronized the time when loading and exited.
Now ntpsec sits in memory permanently.

Can anyone suggest a way to unload it after the initial synchronization?

With this /etc/default/ntpsec, the computer will freeze at boot due to an error with access to pool.ntp.org.

 NTPD_OPTS="-g -N -q"

Or is there another solution?

Last edited by aluma (2023-11-18 10:10:17)

Offline

#2 2023-11-18 14:17:14

snork
Member
Registered: 2021-04-05
Posts: 17  

Re: [SOLVED] Ntpsec.

On my systems I usually

apt-get install sntp

followed by running

sudo /usr/bin/sntp -sS [server] > /dev/null

a couple times a day via crontab.

Offline

#3 2023-11-18 16:53:23

aluma
Member
Registered: 2022-10-26
Posts: 533  

Re: [SOLVED] Ntpsec.

snork wrote:

On my systems I usually

sudo ...

Thanks a lot for the tip!
Added sudo to my ntp.stop file

#!/bin/sh
sudo /usr/sbin/ntpd -q

and placed it in DE startup folder.
The ntpsec service has been disabled.
Everything works, time is synchronized, ntp is not in memory.

Regards.

P.S. It is very easy to check synchronization with sufficient accuracy for home use.
Here is one of these sites, open it, if everything is ok, the time on the page will be blue, otherwise red.
time.in.ua

Last edited by aluma (2023-11-18 17:14:00)

Offline

Board footer