Saturday, December 25, 2021

Re: how to reload date from ntpd

On 2021-12-22, uesso@danwin1210.de <uesso@danwin1210.de> wrote:
> How can I reload date from ntpd after boot?

rcctl stop ntpd
rdate $timeserver
rcctl start ntpd

> fp$ doas rcctl order ntpd dnscrypt_proxy
> rcctl: ntpd is not a pkg script

"order" does not work for base system services, they use a fixed order.
You can symlink another name e.g. /etc/rc.d/_ntpd to ntpd, disable ntpd,
and enable _ntpd, then it's not known as a base system service so you
can adjust the order relative to package daemons.


--
Please keep replies on the mailing list.

No comments:

Post a Comment