It's hard for me to unravel what's happening. The only thing i can suggest
is to use systemctl. Seems to work for me:

sudo systemctl start weewx

Sorry, but I don't have any insights.

-tk

On Sun, Aug 2, 2020 at 8:25 PM brisguy foo <[email protected]> wrote:

>
> Oh. I just assumed I was starting/stopping things incorrectly, so did not
> think a log was relevant. No problem, here it is, along with some more info.
>
> HW = RaspberryPi Zero
> OS = Raspbian 10.1
>
> 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.
>
> Thanks!
>
> On Sunday, August 2, 2020 at 2:06:22 PM UTC-7, Tom Keffer wrote:
>>
>> 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 <[email protected]> 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 daemon
>>> sudo weewxd /etc/weewx/weewx.conf  # to run directly
>>> CTL-C   # to stop running directly
>>> sudo /etc/init.d/weewx start  # to start the daemon
>>>
>>> After 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/da07f3e0-1205-4d15-94ce-9b2eb28a8ec3o%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/da07f3e0-1205-4d15-94ce-9b2eb28a8ec3o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/77e7e690-ca57-41b5-9b22-4b82638e7070o%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/77e7e690-ca57-41b5-9b22-4b82638e7070o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPq0zEC9jcL0MS313HvJM43CBZgF40Mfv_B2iNYYO6ZPTvvaag%40mail.gmail.com.

Reply via email to