Don't forget that the systemctl .service that is being used is 
automatically being generated by systemctl form the SysV file.
There may be something in the SysV file that you can add to make it stop 
the daemon correctly.
Alternatively you can create a systemctl .service file yourself that has 
the necessary command line in it(something like "ExecReload=/bin/kill -HUP 
$MAINPID" where MAINPID is automatically set by systemctl to be the PID of 
the running daemon.)
Susan

On Monday, 18 January 2021 at 7:44:56 am UTC+11 [email protected] wrote:

> Hello  back 
> Nobody has this problem ? 
>
> Process: 6148 ExecStart=/etc/init.d/weewx start (code=exited, 
> status=1/FAILURE) 
>
> Every time I want to stop service , I must kill the process...
>
> Thanks for your feedback  
> Stéphane 
> Le mercredi 13 janvier 2021 à 22:15:40 UTC+1, stef LP a écrit :
>
>> Hello 
>> I reinstall from scratch my raspberry Pi 
>> I decided to install python3 by default
>> I decided to install weewx 4.3.0 latest release
>>
>> But  I decided to install weewx-multi ( i ve 2 stations  an old WMR200 
>> with the good driver) 
>> and a new Froggit)
>> I install weewx-multi 
>> But  It seems there is a little bug when I want to stop service ...
>> When I start  : 
>>
>> root@rpi-weewx:/etc/init.d# systemctl status weewx.service
>> ● weewx.service - LSB: weewx-multi
>>    Loaded: loaded (/etc/init.d/weewx; generated)
>>    Active: failed (Result: exit-code) since Wed 2021-01-13 22:12:26 CET; 
>> 7s ago
>>      Docs: man:systemd-sysv-generator(8)
>>   Process: 6148 ExecStart=/etc/init.d/weewx start (code=exited, 
>> status=1/FAILURE)
>>     Tasks: 6 (limit: 2063)
>>    CGroup: /system.slice/weewx.service
>>            └─6163 python /usr/share/weewx/weewxd --daemon --log-label 
>> weewx-WMR200 --pidfile=/var/run/weewx-WMR200.pid /etc/weewx/WMR200.conf
>>
>> janv. 13 22:12:27 rpi-weewx python[6163]: weewx-WMR200[6163] INFO 
>> weewx.restx: WOW: Posting not enabled.
>> janv. 13 22:12:27 rpi-weewx python[6163]: weewx-WMR200[6163] INFO 
>> weewx.restx: AWEKAS: Posting not enabled.
>> janv. 13 22:12:27 rpi-weewx python[6163]: weewx-WMR200[6163] INFO 
>> __main__: Starting up weewx version 4.3.0
>> janv. 13 22:12:27 rpi-weewx python[6163]: weewx-WMR200[6163] INFO 
>> weewx.engine: Using binding 'wx_binding' to database 'weewx-WMR200.sdb'
>> janv. 13 22:12:27 rpi-weewx python[6163]: weewx-WMR200[6163] INFO 
>> weewx.manager: Starting backfill of daily summaries
>> janv. 13 22:12:28 rpi-weewx python[6163]: weewx-WMR200[6163] INFO 
>> user.wmr200: Time drift between host and console in seconds:29
>> janv. 13 22:12:32 rpi-weewx python[6163]: weewx-WMR200[6163] INFO 
>> user.wmr200: genStartup() Still receiving archive packets cnt:0 len:1
>> janv. 13 22:12:32 rpi-weewx python[6163]: weewx-WMR200[6163] INFO 
>> user.wmr200: Using pc time adjusting archive record time by 29 sec 
>> 2021-01-13 06:21:00 CET (1610515260) => 2021-01-13 06:21:29 CET (1610515289)
>> janv. 13 22:12:32 rpi-weewx python[6163]: weewx-WMR200[6163] INFO 
>> weewx.manager: Added record 2021-01-13 06:21:29 CET (1610515289) to 
>> database 'weewx-WMR200.sdb'
>> janv. 13 22:12:32 rpi-weewx python[6163]: weewx-WMR200[6163] INFO 
>> weewx.manager: Added record 2021-01-13 06:21:29 CET (1610515289) to daily 
>> summary in 'weewx-WMR200.sdb'
>>
>>
>>  this is important i thing  :  
>> 6163 python /usr/share/weewx/weewxd --daemon --log-label weewx-WMR200 
>> --pidfile=/var/run/weewx-WMR200.pid /etc/weewx/WMR200.conf  
>>
>> But When I want to stop the weewx service 
>> never this PID is killed ;-( ...
>>
>> Perhaps I ve make some mistakes
>>
>> Someone help me ? 
>> Best regards
>> Stéphane
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/329238fe-29e5-490e-83ba-e36b50051f26n%40googlegroups.com.

Reply via email to