We've seen this one before recently.

See if the pid file referenced in the init.d file is present in /var/run - 
if it's there either delete it manually or else do a couple 'sysctl stop 
weewx' commands to delete it.   Subsequent startups should work ok.


On Sunday, July 4, 2021 at 1:47:10 PM UTC-7 [email protected] wrote:

> Thanks for the reply. It could very well be the init.d/weewx script but 
> i've started at it and from what i understand, i can't see an error. I've 
> attached weewx.txt which is the top half of the init.d script.
>
> I cleared the syslog and the weewx.log and then i rebooted. After the 
> reboot i pasted the syslog into the attached syslog.txt - and the weewx.log 
> remained empty so nothing to attach.
>
> After the boot, i tried to run this sudo /etc/init.d/weewx start and 
> nothing happens, nor gets added to the log.
>
> Lastly, i ran *cd /home/weewx* and then *sudo ./bin/weewxd* and it 
> immediately worked and started working.
>
>
>
> On Sun, Jul 4, 2021 at 6:54 PM Tom Keffer <[email protected]> wrote:
>
>> Make sure the script in /etc/init.d/weewx references your new copy of 
>> weewxd in /home/weewx/bin, and not the old copy in /usr/share/weewx
>>
>> But, it's hard to say anything definitive without seeing the log.
>>
>> -tk
>>
>> On Sun, Jul 4, 2021 at 6:50 AM [email protected] <[email protected]> 
>> wrote:
>>
>>> Hi,
>>>
>>> I originally had weewx installed using the DEB package which was fine. 
>>> With the intention of using multiple instances of weewx for different 
>>> stations, I have uninstalled that and then I re-installed weewx using 
>>> setup.py to the /home/weewx/
>>>
>>> It works perfectly when I run it directly in terminal using *sudo 
>>> ./bin/weewxd* but I have not been able to add the script to 
>>> *init.d/weewx* in order for it to run at boot. I have followed the 
>>> instructions at https://weewx.com/docs/setup.htm but weewx will not 
>>> start at boot and after boot, even if I manually run sudo 
>>> /etc/init.d/weewx start it does nothing. I can tell because I'm tailing 
>>> the log file and nothing happens. Run it manually, it starts collecting 
>>> data perfectly.
>>>
>>> I used the default file from /weewx/utils/weewx.debian and copied it to 
>>> /etc/init.d/weewx and I did not make any changes. Is there something else 
>>> I'm supposed to do. The weewx installation was done to the default 
>>> /home/weewx directory.
>>>
>>> Would appreciate any suggestions.
>>>
>>> -- 
>>> 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/9cfe9263-c54c-47f3-9ed5-f2197bb7696en%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/9cfe9263-c54c-47f3-9ed5-f2197bb7696en%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> -- 
>>
> You received this message because you are subscribed to a topic in the 
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/weewx-user/POwnsa43jyI/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/CAPq0zEA7A0rcQ_OqmiqdYe_6MTNXy-rJH1LH8Vge1heqAxkuNg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEA7A0rcQ_OqmiqdYe_6MTNXy-rJH1LH8Vge1heqAxkuNg%40mail.gmail.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/ddf87c2c-b0ab-4609-8334-a22526dbb955n%40googlegroups.com.

Reply via email to