There is another nice "solution", although from a different approach: in https://groups.google.com/g/weewx-user/c/7RO3UytAonA/m/3dJGZ9ogBQAJ [email protected] wrote: ---------------------------------------- Like WFS... I also created a systemd service so that I could add the Requires=time-sync.target, which worked to delay the start but then caused problems during upgrading of weewx with apt. So I figured out how to do this with the default init.d script.
1. $sudo systemctl enable systemd-time-wait-sync 2. Add time-sync.target to your default /etc/init.d/weewx script like I show below. ### BEGIN INIT INFO # Provides: weewx # Required-Start: $local_fs $remote_fs $syslog systemd-time-wait-sync 3. $sudo systemctl daemon-reload ---------------------------------------- As systemd-time-wait-sync needs a network connection, this will have the same effect, but using the init.d script. And, in addition, it prevents some problems with upgrading weewx (depending on systemd using weewx.service?). -Peter gjr80 schrieb am Dienstag, 9. Februar 2021 um 20:42:42 UTC+1: > On Tuesday, 9 February 2021 at 23:56:24 UTC+10 Vetti52 wrote: > >> >> BTW, in the user guide it is said to set the option to "1", not to "True". >> I guess, "True" will work as well. >> > > Correct, I am so used to just using True or False I never mention 1 or 0 > but both forms are fine. > > Gary > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/84d6397d-7056-424a-bc1b-73b1e3534814n%40googlegroups.com.
