--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/da07f3e0-1205-4d15-94ce-9b2eb28a8ec3o%40googlegroups.com.
Depends on the operating system, but you have the general idea.You may not think there is anything useful in the log, but please humor me: post it anyway. And, tell us the operating system.
On Sun, Aug 2, 2020 at 2:03 PM brisguy foo <iams...@gmail.com> wrote:
--I had to do some debugging og my weewx installation recently and needed to swap back and forth between running directly and as a daemon. However, once I used the direct method, I never seem to be able to get the daemon launched again without just doing a reboot.I have been doing the following (starting from a running daemon)sudo /etc/init.d/weewx stop # to stop the daemonsudo weewxd /etc/weewx/weewx.conf # to run directlyCTL-C # to stop running directlysudo /etc/init.d/weewx start # to start the daemonAfter the attempt to start the daemon, the terminal responds [OK], but looking at the syslog file, I can see it never did and there is no error message. At this point, I reboot and things run fine.What is the correct way to start/stop these processes?
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 weewx...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/77e7e690-ca57-41b5-9b22-4b82638e7070o%40googlegroups.com.
In the log, the switching between direct a daemon execution starts around 10:15 which is when I finally successfully installed version 4.1.1. It looks like I killed the daemon around 10:15 and fixed an error in the .conf file and started directly. Then stopped that and tried to start the daemon. You will see a reboot eventually after that, at which point everything works. At some point, I also changed the conf debug setting from zero to 1.
My original complaint was that I could not get the daemon to START without rebooting the system. I never mentioned problems with shutting it down. If you look at the log starting around 10:47, you'll see messages indicating that weewx has started, but it should have posted a new record at 11:50 (and every five minutes thereafter), but did not. Same thing starting at 11:27. At that point, I reboot so I can mount a USB drive onto the system, which involves disconnecting the weather-station since I only have one USB port I can use! After that reboot, the system ran normally.