I assume you were trying a systemctl "reload"?

If so, I'm not surprised that it wouldn't work with a live thread. I never
use it, preferring to kill, then restart.
If not, perhaps you could describe what you were doing? systemctl works
perfectly on my system.



On Tue, Aug 27, 2019 at 2:26 PM Andy <rocklin...@gmail.com> wrote:

>
>
> Un-commenting this line got the reload working with an ERROR
> ExecReload=/bin/kill -HUP $MAINPID
>
> Aug 27 14:21:00 weewx-01 systemd[1]: Reloading weewx weather system.
> Aug 27 14:21:00 weewx-01 weewx[7063]/INFO weewx.engine: Received signal
> HUP. Initiating restart.
> Aug 27 14:21:00 weewx-01 weewx[7063]/INFO weewx.engine: Main loop exiting.
> Shutting engine down.
> Aug 27 14:21:00 weewx-01 weewx[7063]/INFO weewx.engine: Shutting down
> StdReport thread
> Aug 27 14:21:00 weewx-01 weewx[7063]/INFO user.sdr: shutdown process
> rtl_433 -M utc -F json -G
> Aug 27 14:21:00 weewx-01 systemd[1]: Reloaded weewx weather system.
> Aug 27 14:21:01 weewx-01 CRON[7142]: (root) CMD (/home/camera/update-image
> >/dev/null 2>&1)
> Aug 27 14:21:10 weewx-01 weewx[7063]/INFO user.sdr: timed out waiting for
> stderr-thread
> Aug 27 14:21:15 weewx-01 weewx[7063]/ERROR user.sdr: process did not
> respond to kill, shutting down anyway
> Aug 27 14:21:15 weewx-01 weewx[7063]/INFO weewx.engine: Received signal
> HUP. Restarting.
> Aug 27 14:21:15 weewx-01 weewx[7063]/INFO weewx.engine: Using
> configuration file /home/weewx/weewx.conf
> Aug 27 14:21:15 weewx-01 weewx[7063]/INFO weewx.engine: Loading station
> type SDR (user.sdr)
> Aug 27 14:21:15 weewx-01 weewx[7063]/INFO user.sdr: driver version is 0.70
>
>
>
>
> On Tuesday, August 27, 2019 at 2:15:43 PM UTC-7, Andy wrote:
>>
>> My attempts to use this <https://github.com/weewx/weewx/wiki/systemd> with
>> python2 and python3 have resulted in:
>> Aug 27 06:47:14 weewx-01 weewx[1243]/INFO weewx.engine: Starting up weewx
>> version 4.0.0a7
>> Aug 27 06:47:14 weewx-01 weewx[1243]/INFO weewx.engine: Starting main
>> packet loop.
>> Aug 27 06:48:44 weewx-01 systemd[1]: weewx.service: State 'stop-sigterm'
>> timed out. Killing.
>> Aug 27 06:48:44 weewx-01 systemd[1]: weewx.service: Killing process 1243
>> (weewxd) with signal SIGKILL.
>> Aug 27 06:48:44 weewx-01 systemd[1]: weewx.service: Killing process 1244
>> (rtl_433) with signal SIGKILL.
>> Aug 27 06:48:44 weewx-01 systemd[1]: weewx.service: Failed with result
>> 'timeout'.
>>
>> My consultation with the oracle has it working with this, but more
>> research is needed before the wiki is updated:
>> [Service]
>> ExecStart=/usr/bin/python3 /home/weewx/bin/weewxd   /home/weewx/weewx.conf
>> WorkingDirectory=/home/weewx
>> #ExecReload=/bin/kill -HUP $MAINPID
>> Type=simple
>> #PIDFile=/var/run/weewx.pid
>>
>>  Andy
>>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-development+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-development/20cde526-bad0-4554-a05f-42ba6fcc2dcd%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/20cde526-bad0-4554-a05f-42ba6fcc2dcd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zEDqQF-RfSnYh08g92Kj0RN1gFK62pWsfw-gUdheZ2ERJQ%40mail.gmail.com.

Reply via email to